diff options
author | Julius Bünger <buenger@mytum.de> | 2018-07-10 12:37:57 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-07-10 12:37:57 +0200 |
commit | a5c75acc95be6f1b02f5eb3fb039f7c7fa7e4877 (patch) | |
tree | b46757e81a86224c044f31b0a5d72b83e639673f /src/rps/gnunet-rps-profiler.c | |
parent | d1c8a1e764430a7720bc2962414aa45e1d3b9030 (diff) | |
download | gnunet-a5c75acc95be6f1b02f5eb3fb039f7c7fa7e4877.tar.gz gnunet-a5c75acc95be6f1b02f5eb3fb039f7c7fa7e4877.zip |
fix rps profiler: mark statistics get done in right place
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r-- | src/rps/gnunet-rps-profiler.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
2372 | { | 2372 | { |
2373 | struct STATcls *stat_cls = (struct STATcls *) cls; | 2373 | struct STATcls *stat_cls = (struct STATcls *) cls; |
2374 | struct RPSPeer *rps_peer = stat_cls->rps_peer; | 2374 | struct RPSPeer *rps_peer = stat_cls->rps_peer; |
2375 | |||
2376 | rps_peer->h_stat_get[stat_cls->stat_type] = NULL; | ||
2375 | if (GNUNET_OK == success) | 2377 | if (GNUNET_OK == success) |
2376 | { | 2378 | { |
2377 | /* set flag that we we got the value */ | 2379 | /* set flag that we we got the value */ |
@@ -2428,7 +2430,6 @@ stat_iterator (void *cls, | |||
2428 | //stat_type_2_str (stat_cls->stat_type), | 2430 | //stat_type_2_str (stat_cls->stat_type), |
2429 | name, | 2431 | name, |
2430 | value); | 2432 | value); |
2431 | rps_peer->h_stat_get[stat_str_2_type (name)] = NULL; | ||
2432 | to_file (rps_peer->file_name_stats, | 2433 | to_file (rps_peer->file_name_stats, |
2433 | "%s: %" PRIu64 "\n", | 2434 | "%s: %" PRIu64 "\n", |
2434 | name, | 2435 | name, |