diff options
Diffstat (limited to 'src/testbed/gnunet-testbed-profiler.c')
-rw-r--r-- | src/testbed/gnunet-testbed-profiler.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 086a9ef56..0990905e9 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c | |||
@@ -717,6 +717,17 @@ host_habitable_cb (void *cls, const struct GNUNET_TESTBED_Host *host, int status | |||
717 | static unsigned int hosts_checked; | 717 | static unsigned int hosts_checked; |
718 | 718 | ||
719 | *hc_handle = NULL; | 719 | *hc_handle = NULL; |
720 | if (GNUNET_NO == status) | ||
721 | { | ||
722 | if ((NULL != host) && (NULL != GNUNET_TESTBED_host_get_hostname_ (host))) | ||
723 | LOG (GNUNET_ERROR_TYPE_ERROR, _("Host %s cannot start testbed\n"), | ||
724 | GNUNET_TESTBED_host_get_hostname_ (host)); | ||
725 | else | ||
726 | LOG (GNUNET_ERROR_TYPE_ERROR, _("Testbed cannot be started on localhost\n")); | ||
727 | GNUNET_SCHEDULER_cancel (abort_task); | ||
728 | abort_task = GNUNET_SCHEDULER_add_now (&do_abort, NULL); | ||
729 | return; | ||
730 | } | ||
720 | hosts_checked++; | 731 | hosts_checked++; |
721 | printf (_("\rChecked %u hosts"), hosts_checked); | 732 | printf (_("\rChecked %u hosts"), hosts_checked); |
722 | fflush (stdout); | 733 | fflush (stdout); |