diff options
author | harsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-03 14:50:35 +0000 |
---|---|---|
committer | harsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-03 14:50:35 +0000 |
commit | dbdba5602b00ebaec8b964332315d191bda695cd (patch) | |
tree | 06be48e43fbc7af89578d1eedafb2510891d911d | |
parent | 41c6fa212681e8cbd3ff0dcee92bb9f053d225dd (diff) |
display and update number of hosts checked
git-svn-id: https://gnunet.org/svn/gnunet@25188 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r-- | src/testbed/gnunet-testbed-profiler.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 9eaf702a33..261bd51559 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c @@ -715,8 +715,12 @@ host_habitable_cb (void *cls, int status) static unsigned int hosts_checked; *hc_handle = NULL; - if (++hosts_checked < num_hosts) + hosts_checked++; + printf (_("\rChecked %u hosts"), hosts_checked); + fflush (stdout); + if (hosts_checked < num_hosts) return; + printf (_("\nAll hosts can start testbed. Creating peers\n")); GNUNET_free (hc_handles); hc_handles = NULL; mc_proc = @@ -759,6 +763,7 @@ run (void *cls, char *const *args, const char *cfgfile, fprintf (stderr, _("No hosts loaded. Need at least one host\n")); return; } + printf (_("Checking whether given hosts can start testbed. Please wait\n")); hc_handles = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_HostHabitableCheckHandle *) * num_hosts); |