Refactoring gnunet time
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 27 Oct 2010 09:54:53 +0000 (09:54 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 27 Oct 2010 09:54:53 +0000 (09:54 +0000)
src/statistics/gnunet-service-statistics.c
src/statistics/statistics_api.c

index 92f79cc914b3a492b600fd89b6ea14f6ce733ee1..50f347694a81088950a960482ab220065cd82693 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->value);
+             e->persistent, e->abs_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) value);
+             (unsigned long long) abs_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->value);
+                      service, name, pos->abs_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->value);
+              service, name, pos->abs_value);
 #endif
   GNUNET_SERVER_receive_done (client, GNUNET_OK);
 }
index ef9865e0243d18a2cbbdb279fb4ee7840cf6a313..1ccf2b86d30bffbfe7f5376ef2c867d86fc5d35d 100644 (file)
@@ -402,7 +402,7 @@ process_message (struct GNUNET_STATISTICS_Handle *h,
 #if DEBUG_STATISTICS
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received valid statistic on `%s:%s': %llu\n",
-              service, name, GNUNET_ntohll (smsg->value));
+              service, name, GNUNET_ntohll (smsg->abs_value));
 #endif
   if (GNUNET_OK !=
       h->current->proc (h->current->cls,