diff options
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r-- | src/rps/gnunet-rps-profiler.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c index 36a167203..98fc8dccb 100644 --- a/src/rps/gnunet-rps-profiler.c +++ b/src/rps/gnunet-rps-profiler.c | |||
@@ -1574,7 +1574,7 @@ static void mal_init_peer (struct RPSPeer *rps_peer) | |||
1574 | static void | 1574 | static void |
1575 | mal_pre (struct RPSPeer *rps_peer, struct GNUNET_RPS_Handle *h) | 1575 | mal_pre (struct RPSPeer *rps_peer, struct GNUNET_RPS_Handle *h) |
1576 | { | 1576 | { |
1577 | #ifdef ENABLE_MALICIOUS | 1577 | #if ENABLE_MALICIOUS |
1578 | uint32_t num_mal_peers; | 1578 | uint32_t num_mal_peers; |
1579 | 1579 | ||
1580 | GNUNET_assert ( (1 >= portion) && | 1580 | GNUNET_assert ( (1 >= portion) && |
@@ -1605,7 +1605,7 @@ mal_cb (struct RPSPeer *rps_peer) | |||
1605 | return; | 1605 | return; |
1606 | } | 1606 | } |
1607 | 1607 | ||
1608 | #ifdef ENABLE_MALICIOUS | 1608 | #if ENABLE_MALICIOUS |
1609 | GNUNET_assert ( (1 >= portion) && | 1609 | GNUNET_assert ( (1 >= portion) && |
1610 | (0 < portion) ); | 1610 | (0 < portion) ); |
1611 | num_mal_peers = round (portion * num_peers); | 1611 | num_mal_peers = round (portion * num_peers); |
@@ -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 | ||
2653 | void post_profiler (struct RPSPeer *rps_peer) | 2655 | |
2656 | void | ||
2657 | post_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 | { |