diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-03 17:09:01 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-03 17:09:01 +0000 |
commit | 685685e2b281f8884c8df20f0a277a88bbd09e15 (patch) | |
tree | 7dbd78ea0e12045622428b7604b77c7b65980b4c /src/testbed/gnunet-testbed-profiler.c | |
parent | 8f78284d0cd6478ede024cdef75d10de301b3060 (diff) | |
download | gnunet-685685e2b281f8884c8df20f0a277a88bbd09e15.tar.gz gnunet-685685e2b281f8884c8df20f0a277a88bbd09e15.zip |
- check the host compatibility check status
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); |