aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-statistics.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-21 12:44:37 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-21 12:44:37 +0000
commit244acf03bb6313c3e8a900c940f1eed5536c7aa9 (patch)
tree02b7b8c5741a7b57332338055ee2e902eab21e0e /src/statistics/gnunet-statistics.c
parent8ee36bffa3c4afdb4d41ee9cd9565bac2ead9d2c (diff)
downloadgnunet-244acf03bb6313c3e8a900c940f1eed5536c7aa9.tar.gz
gnunet-244acf03bb6313c3e8a900c940f1eed5536c7aa9.zip
extra debug for datastore, stats api fix
Diffstat (limited to 'src/statistics/gnunet-statistics.c')
-rw-r--r--src/statistics/gnunet-statistics.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c
index bea9ca0ca..dd9850418 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -65,11 +65,13 @@ static int persistent;
65static int 65static int
66printer (void *cls, 66printer (void *cls,
67 const char *subsystem, 67 const char *subsystem,
68 const char *name, unsigned long long value, int is_persistent) 68 const char *name,
69 uint64_t value, int is_persistent)
69{ 70{
70 FPRINTF (stdout, 71 FPRINTF (stdout,
71 "%s%-20s %-40s: %16llu\n", 72 "%s%-20s %-40s: %16llu\n",
72 is_persistent ? "!" : " ", subsystem, _(name), value); 73 is_persistent ? "!" : " ", subsystem, _(name),
74 (unsigned long long) value);
73 return GNUNET_OK; 75 return GNUNET_OK;
74} 76}
75 77
@@ -127,7 +129,7 @@ run (void *cls,
127 ret = 1; 129 ret = 1;
128 return; 130 return;
129 } 131 }
130 GNUNET_STATISTICS_set (h, name, val, persistent); 132 GNUNET_STATISTICS_set (h, name, (uint64_t) val, persistent);
131 GNUNET_STATISTICS_destroy (h); 133 GNUNET_STATISTICS_destroy (h);
132 return; 134 return;
133 } 135 }