From: Julius Bünger Date: Tue, 10 Jul 2018 10:37:57 +0000 (+0200) Subject: fix rps profiler: mark statistics get done in right place X-Git-Tag: v0.11.0~322^2~75^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5c75acc95be6f1b02f5eb3fb039f7c7fa7e4877;p=oweals%2Fgnunet.git fix rps profiler: mark statistics get done in right place --- diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c index cab7f6dc4..4ebd745e8 100644 --- a/src/rps/gnunet-rps-profiler.c +++ b/src/rps/gnunet-rps-profiler.c @@ -2372,6 +2372,8 @@ post_test_shutdown_ready_cb (void *cls, { struct STATcls *stat_cls = (struct STATcls *) cls; struct RPSPeer *rps_peer = stat_cls->rps_peer; + + rps_peer->h_stat_get[stat_cls->stat_type] = NULL; if (GNUNET_OK == success) { /* set flag that we we got the value */ @@ -2428,7 +2430,6 @@ stat_iterator (void *cls, //stat_type_2_str (stat_cls->stat_type), name, value); - rps_peer->h_stat_get[stat_str_2_type (name)] = NULL; to_file (rps_peer->file_name_stats, "%s: %" PRIu64 "\n", name,