From: Matthias Wachs Date: Wed, 27 Oct 2010 09:54:53 +0000 (+0000) Subject: Refactoring gnunet time X-Git-Tag: initial-import-from-subversion-38251~19926 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=abcb868988fd2d754e13ef5122c8ada9c404b273;p=oweals%2Fgnunet.git Refactoring gnunet time --- diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 92f79cc91..50f347694 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c @@ -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); } diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index ef9865e02..1ccf2b86d 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -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,