line
[oweals/gnunet.git] / src / statistics / gnunet-service-statistics.c
index 50f347694a81088950a960482ab220065cd82693..c506dee7b9aa44408be58b387a12f0a617da195a 100644 (file)
@@ -305,7 +305,7 @@ transmit (struct GNUNET_SERVER_Client *client,
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Transmitting value for `%s:%s' (%d): %llu\n",
               e->service, e->name,
-             e->persistent, e->abs_value);
+             e->persistent, e->value);
 #endif
   GNUNET_SERVER_notification_context_unicast (nc, client, &m->header, GNUNET_NO);
   GNUNET_free (m);
@@ -479,7 +479,7 @@ handle_set (void *cls,
               "Received request to update statistic on `%s:%s' (%u) to/by %llu\n",
               service, name,
              (unsigned int) flags,
-             (unsigned long long) abs_value);
+             (unsigned long long) value);
 #endif
   pos = start;
   prev = NULL;
@@ -522,7 +522,7 @@ handle_set (void *cls,
 #if DEBUG_STATISTICS
           GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                       "Statistic `%s:%s' updated to value %llu.\n",
-                      service, name, pos->abs_value);
+                      service, name, pos->value);
 #endif
          if (changed) 
            notify_change (pos);
@@ -548,7 +548,7 @@ handle_set (void *cls,
 #if DEBUG_STATISTICS
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "New statistic on `%s:%s' with value %llu created.\n",
-              service, name, pos->abs_value);
+              service, name, pos->value);
 #endif
   GNUNET_SERVER_receive_done (client, GNUNET_OK);
 }
@@ -730,13 +730,11 @@ handle_client_disconnect (void *cls,
  * Process statistics requests.
  *
  * @param cls closure
- * @param sched scheduler to use
  * @param server the initialized server
  * @param c configuration to use
  */
 static void
 run (void *cls,
-     struct GNUNET_SCHEDULER_Handle *sched,
      struct GNUNET_SERVER_Handle *server,
      const struct GNUNET_CONFIGURATION_Handle *c)
 {
@@ -753,8 +751,7 @@ run (void *cls,
                                   &handle_client_disconnect,
                                   NULL);
   load (server);
-  GNUNET_SCHEDULER_add_delayed (sched,
-                               GNUNET_TIME_UNIT_FOREVER_REL,
+  GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
                                &shutdown_task,
                                NULL);
 }