fix rps profiler: mark operation as done on shutdown
authorJulius Bünger <buenger@mytum.de>
Thu, 5 Jul 2018 15:09:06 +0000 (17:09 +0200)
committerJulius Bünger <buenger@mytum.de>
Thu, 5 Jul 2018 15:10:21 +0000 (17:10 +0200)
src/rps/gnunet-rps-profiler.c

index ec73f180331964618d0c7764e12fdddd0d492bac..dcd72aef157de6662004c1ff0920e44c647a8ea9 100644 (file)
@@ -905,6 +905,7 @@ shutdown_op (void *cls)
     if (NULL != rps_peers[i].op)
     {
       GNUNET_TESTBED_operation_done (rps_peers[i].op);
+      rps_peers[i].op = NULL;
     }
   }
 }
@@ -2263,12 +2264,6 @@ void write_final_stats (void){
          stat_type < STAT_TYPE_MAX;
          stat_type++)
     {
-      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                 "Add to sum (%" PRIu64 ") %" PRIu64 " of stat type %u - %s\n",
-                  sums[stat_type],
-                  rps_peers[i].stats[stat_type],
-                  stat_type,
-                  stat_type_2_str (stat_type));
       sums[stat_type] += rps_peers[i].stats[stat_type];
     }
   }