From b9e8e6baa53d021e2ba16b2cba673418a2dffa93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Fri, 22 Feb 2019 13:21:47 +0100 Subject: [PATCH] RPS profiler: Log index of peer --- src/rps/gnunet-rps-profiler.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c index 937a4363b..98fc8dccb 100644 --- a/src/rps/gnunet-rps-profiler.c +++ b/src/rps/gnunet-rps-profiler.c @@ -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) { -- 2.25.1