diff options
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r-- | src/rps/gnunet-rps-profiler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c index 908dcca17..6d1236f08 100644 --- a/src/rps/gnunet-rps-profiler.c +++ b/src/rps/gnunet-rps-profiler.c | |||
@@ -44,7 +44,7 @@ | |||
44 | static uint32_t num_peers; | 44 | static uint32_t num_peers; |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * @brief numer of bits required to represent the largest peer id | 47 | * @brief number of bits required to represent the largest peer id |
48 | */ | 48 | */ |
49 | static unsigned bits_needed; | 49 | static unsigned bits_needed; |
50 | 50 | ||
@@ -127,7 +127,7 @@ static char*stat_type_strings[] = { | |||
127 | "# pushes sent", | 127 | "# pushes sent", |
128 | "# pull requests sent", | 128 | "# pull requests sent", |
129 | "# pull requests sent (multi-hop peer)", | 129 | "# pull requests sent (multi-hop peer)", |
130 | "# pull replys sent", | 130 | "# pull replies sent", |
131 | "# push message received", | 131 | "# push message received", |
132 | "# push message received (multi-hop peer)", | 132 | "# push message received (multi-hop peer)", |
133 | "# pull request message received", | 133 | "# pull request message received", |
@@ -1173,7 +1173,7 @@ trigger_shutdown (void *cls) | |||
1173 | (void) cls; | 1173 | (void) cls; |
1174 | 1174 | ||
1175 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 1175 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1176 | "Shutdown was triggerd by timeout, going down.\n"); | 1176 | "Shutdown was triggered by timeout, going down.\n"); |
1177 | shutdown_task = NULL; | 1177 | shutdown_task = NULL; |
1178 | GNUNET_SCHEDULER_shutdown (); | 1178 | GNUNET_SCHEDULER_shutdown (); |
1179 | } | 1179 | } |
@@ -2091,7 +2091,7 @@ profiler_cb (struct RPSPeer *rps_peer) | |||
2091 | } | 2091 | } |
2092 | 2092 | ||
2093 | /* Only request peer ids at one peer. | 2093 | /* Only request peer ids at one peer. |
2094 | * (It's the before-last because last one is target of the focussed attack.) | 2094 | * (It's the before-last because last one is target of the focused attack.) |
2095 | */ | 2095 | */ |
2096 | if (0 < rps_peer->num_ids_to_request) | 2096 | if (0 < rps_peer->num_ids_to_request) |
2097 | schedule_missing_requests (rps_peer); | 2097 | schedule_missing_requests (rps_peer); |
@@ -2468,7 +2468,7 @@ void | |||
2468 | compute_diversity () | 2468 | compute_diversity () |
2469 | { | 2469 | { |
2470 | uint32_t i; | 2470 | uint32_t i; |
2471 | /* ith entry represents the numer of occurrences in other peer's views */ | 2471 | /* ith entry represents the number of occurrences in other peer's views */ |
2472 | uint32_t *count_peers = GNUNET_new_array (num_peers, uint32_t); | 2472 | uint32_t *count_peers = GNUNET_new_array (num_peers, uint32_t); |
2473 | uint32_t views_total_size; | 2473 | uint32_t views_total_size; |
2474 | double expected; | 2474 | double expected; |