aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-rps-profiler.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-02-22 13:21:47 +0100
committerng0 <ng0@n0.is>2019-02-22 21:13:43 +0000
commitb9e8e6baa53d021e2ba16b2cba673418a2dffa93 (patch)
tree393c9b8bea3b93808a9d8f405877b1345d10ec37 /src/rps/gnunet-rps-profiler.c
parent08224fdd4b65c02411e790ba4c43e8bf0782ceff (diff)
downloadgnunet-b9e8e6baa53d021e2ba16b2cba673418a2dffa93.tar.gz
gnunet-b9e8e6baa53d021e2ba16b2cba673418a2dffa93.zip
RPS profiler: Log index of peer
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r--src/rps/gnunet-rps-profiler.c12
1 files 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,
2636 (void) subsystem; 2636 (void) subsystem;
2637 (void) is_persistent; 2637 (void) is_persistent;
2638 2638
2639 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got stat value: %s - %" PRIu64 "\n", 2639 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2640 name, 2640 "Got stat value: %s - %" PRIu64 " (%u)\n",
2641 value); 2641 name,
2642 value,
2643 rps_peer->index);
2642 to_file (rps_peer->file_name_stats, 2644 to_file (rps_peer->file_name_stats,
2643 "%s: %" PRIu64 "\n", 2645 "%s: %" PRIu64 "\n",
2644 name, 2646 name,
@@ -2650,7 +2652,9 @@ stat_iterator (void *cls,
2650 return GNUNET_OK; 2652 return GNUNET_OK;
2651} 2653}
2652 2654
2653void post_profiler (struct RPSPeer *rps_peer) 2655
2656void
2657post_profiler (struct RPSPeer *rps_peer)
2654{ 2658{
2655 if (COLLECT_STATISTICS != cur_test_run.have_collect_statistics) 2659 if (COLLECT_STATISTICS != cur_test_run.have_collect_statistics)
2656 { 2660 {