aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet_dht_profiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet_dht_profiler.c')
-rw-r--r--src/dht/gnunet_dht_profiler.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c
index 03ea62152..065ea5d1b 100644
--- a/src/dht/gnunet_dht_profiler.c
+++ b/src/dht/gnunet_dht_profiler.c
@@ -494,8 +494,10 @@ bandwidth_stats_cont (void *cls,
494 struct GNUNET_TESTBED_Operation *op, 494 struct GNUNET_TESTBED_Operation *op,
495 const char *emsg) 495 const char *emsg)
496{ 496{
497 INFO ("# Outgoing bandwidth: %u\n", outgoing_bandwidth); 497 INFO ("# Outgoing bandwidth: %llu\n",
498 INFO ("# Incoming bandwidth: %u\n", incoming_bandwidth); 498 (unsigned long long) outgoing_bandwidth);
499 INFO ("# Incoming bandwidth: %llu\n",
500 (unsigned long long) incoming_bandwidth);
499 GNUNET_SCHEDULER_shutdown (); 501 GNUNET_SCHEDULER_shutdown ();
500} 502}
501 503
@@ -508,8 +510,8 @@ bandwidth_stats_cont (void *cls,
508 * @param subsystem name of subsystem that created the statistic 510 * @param subsystem name of subsystem that created the statistic
509 * @param name the name of the datum 511 * @param name the name of the datum
510 * @param value the current value 512 * @param value the current value
511 * @param is_persistent GNUNET_YES if the value is persistent, GNUNET_NO if not 513 * @param is_persistent #GNUNET_YES if the value is persistent, #GNUNET_NO if not
512 * @return GNUNET_OK to continue, GNUNET_SYSERR to abort iteration 514 * @return #GNUNET_OK to continue, #GNUNET_SYSERR to abort iteration
513 */ 515 */
514static int 516static int
515bandwidth_stats_iterator (void *cls, 517bandwidth_stats_iterator (void *cls,
@@ -635,7 +637,8 @@ get_iter (void *cls,
635 637
636 total_put_path_length = total_put_path_length + (double)put_path_length; 638 total_put_path_length = total_put_path_length + (double)put_path_length;
637 total_get_path_length = total_get_path_length + (double)get_path_length; 639 total_get_path_length = total_get_path_length + (double)get_path_length;
638 DEBUG ("total_put_path_length = %f,put_path \n",total_put_path_length); 640 DEBUG ("total_put_path_length = %u,put_path \n",
641 total_put_path_length);
639 /* Summarize if profiling is complete */ 642 /* Summarize if profiling is complete */
640 if (n_active == n_gets_fail + n_gets_ok) 643 if (n_active == n_gets_fail + n_gets_ok)
641 { 644 {