gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26210 - gnunet/src/regex


From: gnunet
Subject: [GNUnet-SVN] r26210 - gnunet/src/regex
Date: Wed, 27 Feb 2013 03:04:32 +0100

Author: bartpolot
Date: 2013-02-27 03:04:31 +0100 (Wed, 27 Feb 2013)
New Revision: 26210

Modified:
   gnunet/src/regex/gnunet-regex-profiler.c
Log:
- fix off-by-one, imporve log

Modified: gnunet/src/regex/gnunet-regex-profiler.c
===================================================================
--- gnunet/src/regex/gnunet-regex-profiler.c    2013-02-26 15:26:55 UTC (rev 
26209)
+++ gnunet/src/regex/gnunet-regex-profiler.c    2013-02-27 02:04:31 UTC (rev 
26210)
@@ -37,7 +37,7 @@
 #include "gnunet_testbed_service.h"
 
 #define FIND_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 
90)
-#define SEARCHES_IN_PARALLEL 10
+#define SEARCHES_IN_PARALLEL 2
 
 /**
  * DLL of operations
@@ -974,7 +974,7 @@
 find_next_string (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) ||
-      peer_cnt >= (num_search_strings - 1))
+      peer_cnt >= num_search_strings)
     return;
 
   parallel_searches++;
@@ -1647,14 +1647,12 @@
      {
        fflush (stdout);
        prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time);
-       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                   "%u links established in %s\n",
-                   num_links,
-                   GNUNET_STRINGS_relative_time_to_string (prof_time, 
GNUNET_NO));
+       printf ("\n%u links established in %s\n",
+               num_links,
+               GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO));
        prof_time = GNUNET_TIME_relative_divide(prof_time, num_links);
-       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                   "Average of %s per connection\n",
-                   GNUNET_STRINGS_relative_time_to_string (prof_time, 
GNUNET_NO));
+       printf ("Average of %s per connection\n",
+               GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO));
        result = GNUNET_OK;
        GNUNET_free (peer_handles);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]