diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-14 16:23:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-14 16:23:18 +0000 |
commit | 7b26d20f94a7806d17178aab2f20b312dd08fc5c (patch) | |
tree | b54f33493497313f750f5fc9611783796f5525e9 /src/fs/perf_gnunet_service_fs_p2p_respect.c | |
parent | 9b6b39b856accf8b33fe0368b7b3fdf02138702a (diff) | |
download | gnunet-7b26d20f94a7806d17178aab2f20b312dd08fc5c.tar.gz gnunet-7b26d20f94a7806d17178aab2f20b312dd08fc5c.zip |
-fix
Diffstat (limited to 'src/fs/perf_gnunet_service_fs_p2p_respect.c')
-rw-r--r-- | src/fs/perf_gnunet_service_fs_p2p_respect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fs/perf_gnunet_service_fs_p2p_respect.c b/src/fs/perf_gnunet_service_fs_p2p_respect.c index fd432b78c..0437f68a6 100644 --- a/src/fs/perf_gnunet_service_fs_p2p_respect.c +++ b/src/fs/perf_gnunet_service_fs_p2p_respect.c | |||
@@ -224,7 +224,9 @@ stat_run (void *cls, | |||
224 | { | 224 | { |
225 | struct StatMaster *sm = cls; | 225 | struct StatMaster *sm = cls; |
226 | 226 | ||
227 | if (stats[sm->value].name != NULL) | 227 | sm->stat = ca_result; |
228 | GNUNET_assert (NULL != sm->stat); | ||
229 | if (NULL != stats[sm->value].name) | ||
228 | { | 230 | { |
229 | GNUNET_STATISTICS_get (sm->stat, | 231 | GNUNET_STATISTICS_get (sm->stat, |
230 | #if 0 | 232 | #if 0 |
@@ -285,8 +287,7 @@ do_report (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
285 | if (NUM_DAEMONS != ++download_counter) | 287 | if (NUM_DAEMONS != ++download_counter) |
286 | return; /* more downloads to come */ | 288 | return; /* more downloads to come */ |
287 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 289 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
288 | "Finished all downloads, shutting down\n", | 290 | "Finished all downloads, getting statistics\n"); |
289 | (unsigned long long) FILESIZE); | ||
290 | sm = GNUNET_malloc (sizeof (struct StatMaster)); | 291 | sm = GNUNET_malloc (sizeof (struct StatMaster)); |
291 | sm->op = | 292 | sm->op = |
292 | GNUNET_TESTBED_service_connect (NULL, | 293 | GNUNET_TESTBED_service_connect (NULL, |