aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-10-27 09:54:53 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-10-27 09:54:53 +0000
commitabcb868988fd2d754e13ef5122c8ada9c404b273 (patch)
tree936839fd79335b2a031e432abd936eaa884475f1 /src
parentc0667837ee67b963714a528969c4953100f39739 (diff)
downloadgnunet-abcb868988fd2d754e13ef5122c8ada9c404b273.tar.gz
gnunet-abcb868988fd2d754e13ef5122c8ada9c404b273.zip
Refactoring gnunet time
Diffstat (limited to 'src')
-rw-r--r--src/statistics/gnunet-service-statistics.c8
-rw-r--r--src/statistics/statistics_api.c2
2 files changed, 5 insertions, 5 deletions
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,
305 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 305 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
306 "Transmitting value for `%s:%s' (%d): %llu\n", 306 "Transmitting value for `%s:%s' (%d): %llu\n",
307 e->service, e->name, 307 e->service, e->name,
308 e->persistent, e->value); 308 e->persistent, e->abs_value);
309#endif 309#endif
310 GNUNET_SERVER_notification_context_unicast (nc, client, &m->header, GNUNET_NO); 310 GNUNET_SERVER_notification_context_unicast (nc, client, &m->header, GNUNET_NO);
311 GNUNET_free (m); 311 GNUNET_free (m);
@@ -479,7 +479,7 @@ handle_set (void *cls,
479 "Received request to update statistic on `%s:%s' (%u) to/by %llu\n", 479 "Received request to update statistic on `%s:%s' (%u) to/by %llu\n",
480 service, name, 480 service, name,
481 (unsigned int) flags, 481 (unsigned int) flags,
482 (unsigned long long) value); 482 (unsigned long long) abs_value);
483#endif 483#endif
484 pos = start; 484 pos = start;
485 prev = NULL; 485 prev = NULL;
@@ -522,7 +522,7 @@ handle_set (void *cls,
522#if DEBUG_STATISTICS 522#if DEBUG_STATISTICS
523 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 523 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
524 "Statistic `%s:%s' updated to value %llu.\n", 524 "Statistic `%s:%s' updated to value %llu.\n",
525 service, name, pos->value); 525 service, name, pos->abs_value);
526#endif 526#endif
527 if (changed) 527 if (changed)
528 notify_change (pos); 528 notify_change (pos);
@@ -548,7 +548,7 @@ handle_set (void *cls,
548#if DEBUG_STATISTICS 548#if DEBUG_STATISTICS
549 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 549 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
550 "New statistic on `%s:%s' with value %llu created.\n", 550 "New statistic on `%s:%s' with value %llu created.\n",
551 service, name, pos->value); 551 service, name, pos->abs_value);
552#endif 552#endif
553 GNUNET_SERVER_receive_done (client, GNUNET_OK); 553 GNUNET_SERVER_receive_done (client, GNUNET_OK);
554} 554}
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,
402#if DEBUG_STATISTICS 402#if DEBUG_STATISTICS
403 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 403 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
404 "Received valid statistic on `%s:%s': %llu\n", 404 "Received valid statistic on `%s:%s': %llu\n",
405 service, name, GNUNET_ntohll (smsg->value)); 405 service, name, GNUNET_ntohll (smsg->abs_value));
406#endif 406#endif
407 if (GNUNET_OK != 407 if (GNUNET_OK !=
408 h->current->proc (h->current->cls, 408 h->current->proc (h->current->cls,