RPS profiler: Log index of peer
authorJulius Bünger <buenger@mytum.de>
Fri, 22 Feb 2019 12:21:47 +0000 (13:21 +0100)
committerJulius Bünger <buenger@mytum.de>
Fri, 22 Feb 2019 12:22:32 +0000 (13:22 +0100)
src/rps/gnunet-rps-profiler.c

index 937a4363b27a085309308693c0698684e50618ea..98fc8dccb2405030cf46c8905c1324e60d814f37 100644 (file)
@@ -2636,9 +2636,11 @@ stat_iterator (void *cls,
   (void) subsystem;
   (void) is_persistent;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got stat value: %s - %" PRIu64 "\n",
-      name,
-      value);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Got stat value: %s - %" PRIu64 " (%u)\n",
+              name,
+              value,
+              rps_peer->index);
   to_file (rps_peer->file_name_stats,
           "%s: %" PRIu64 "\n",
           name,
@@ -2650,7 +2652,9 @@ stat_iterator (void *cls,
   return GNUNET_OK;
 }
 
-void post_profiler (struct RPSPeer *rps_peer)
+
+void
+post_profiler (struct RPSPeer *rps_peer)
 {
   if (COLLECT_STATISTICS != cur_test_run.have_collect_statistics)
   {