aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-rps-profiler.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-07-05 17:09:06 +0200
committerJulius Bünger <buenger@mytum.de>2018-07-05 17:10:21 +0200
commit79b600acfc7cbcd20cdaac04be7716c8c893ac4e (patch)
treec54b023f9c8149f8616f58057383f147604fa209 /src/rps/gnunet-rps-profiler.c
parent08c8ffb79f1a1b35ed6271591885115838b17074 (diff)
downloadgnunet-79b600acfc7cbcd20cdaac04be7716c8c893ac4e.tar.gz
gnunet-79b600acfc7cbcd20cdaac04be7716c8c893ac4e.zip
fix rps profiler: mark operation as done on shutdown
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r--src/rps/gnunet-rps-profiler.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c
index ec73f1803..dcd72aef1 100644
--- a/src/rps/gnunet-rps-profiler.c
+++ b/src/rps/gnunet-rps-profiler.c
@@ -905,6 +905,7 @@ shutdown_op (void *cls)
905 if (NULL != rps_peers[i].op) 905 if (NULL != rps_peers[i].op)
906 { 906 {
907 GNUNET_TESTBED_operation_done (rps_peers[i].op); 907 GNUNET_TESTBED_operation_done (rps_peers[i].op);
908 rps_peers[i].op = NULL;
908 } 909 }
909 } 910 }
910} 911}
@@ -2263,12 +2264,6 @@ void write_final_stats (void){
2263 stat_type < STAT_TYPE_MAX; 2264 stat_type < STAT_TYPE_MAX;
2264 stat_type++) 2265 stat_type++)
2265 { 2266 {
2266 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2267 "Add to sum (%" PRIu64 ") %" PRIu64 " of stat type %u - %s\n",
2268 sums[stat_type],
2269 rps_peers[i].stats[stat_type],
2270 stat_type,
2271 stat_type_2_str (stat_type));
2272 sums[stat_type] += rps_peers[i].stats[stat_type]; 2267 sums[stat_type] += rps_peers[i].stats[stat_type];
2273 } 2268 }
2274 } 2269 }