From: Matthias Wachs Date: Thu, 31 May 2012 09:47:11 +0000 (+0000) Subject: - error message if fail X-Git-Tag: initial-import-from-subversion-38251~13346 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac637c3061ba5dbeb71da8b3586dbb968606dc80;p=oweals%2Fgnunet.git - error message if fail --- diff --git a/src/util/test_speedup.c b/src/util/test_speedup.c index 849505c24..47603d35c 100644 --- a/src/util/test_speedup.c +++ b/src/util/test_speedup.c @@ -89,13 +89,18 @@ main (int argc, char *argv[]) end_real = time (NULL); delta = GNUNET_TIME_absolute_get_difference(start, end); - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in GNUnet time: %llu ms\n", delta.rel_value); - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000); - if (delta.rel_value > ((end_real - start_real) * 1500)) + { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in GNUnet time: %llu ms\n", delta.rel_value); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000); return 0; + } else + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Execution time in GNUnet time: %llu ms\n", delta.rel_value); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Execution time in system time: %llu ms\n", (end_real - start_real) * 1000); return 1; + } } /* end of test_speedup.c */