gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14872 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r14872 - gnunet/src/transport
Date: Tue, 5 Apr 2011 16:23:38 +0200

Author: wachs
Date: 2011-04-05 16:23:38 +0200 (Tue, 05 Apr 2011)
New Revision: 14872

Modified:
   gnunet/src/transport/test_transport_ats.c
Log:


Modified: gnunet/src/transport/test_transport_ats.c
===================================================================
--- gnunet/src/transport/test_transport_ats.c   2011-04-05 14:16:43 UTC (rev 
14871)
+++ gnunet/src/transport/test_transport_ats.c   2011-04-05 14:23:38 UTC (rev 
14872)
@@ -166,12 +166,11 @@
 
        GNUNET_log 
(GNUNET_ERROR_TYPE_ERROR,"%savg,%f,stddev,%f\n",output,average,stddev);
        /* only log benchmark time for 10 peers */
-
-       if (results[c].peers == (10))
-       {
-               GAUGER ("TRANSPORT", "ATS execution time 10 peers", (int) 
average , "ms");
-       }
-
+       if (results[MEASUREMENTS-1].peers == (10))
+               {
+                       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Send data to 
gauger\n");
+                       GAUGER ("TRANSPORT", "ATS execution time 10 peers", 
(int) average , "ms");
+               }
        shutdown_peers();
 }
 
@@ -221,8 +220,10 @@
                        if (results[r_index].timestamp != value)
                        {
                                r_index++;
+                               fprintf(stderr, "(%i/%i)", r_index, 
MEASUREMENTS);
                                if (r_index >= MEASUREMENTS)
                                {
+                                       fprintf(stderr, "\n");
                                        if (stats_task != 
GNUNET_SCHEDULER_NO_TASK)
                                        {
                                                
GNUNET_SCHEDULER_cancel(stats_task);
@@ -231,37 +232,35 @@
                                        evaluate_measurements();
                                        return GNUNET_NO;
                                }
+                               fprintf(stderr, "..");
+
                                results[r_index].timestamp = value;
                        }
-
-                       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                                               "[%i] ATS solution: %s %llu 
\n", r_index, name, value);
+                       //GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "[%i] ATS 
solution: %s %llu \n", r_index, name, value);
                }
 
                if (0 == strcmp (name,"ATS solution"))
                {
                        results[r_index].solution = value;
-                       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                                               "[%i] ATS solution: %s %llu 
\n", r_index, name, value);
+                       //GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "[%i] ATS 
solution: %s %llu \n", r_index, name, value);
                }
 
                if (0 == strcmp (name,"ATS peers"))
                {
                        results[r_index].peers = value;
-                       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                                               "[%i] ATS peers: %s %llu \n", 
r_index, name, value);
+                       // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "[%i] ATS 
peers: %s %llu \n", r_index, name, value);
                }
 
                if (0 == strcmp (name,"ATS mechanisms"))
                {
                        results[r_index].mechs = value;
-                       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "[%i] ATS 
mechanisms: %s %llu \n", r_index, name, value);
+                       //GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "[%i] ATS 
mechanisms: %s %llu \n", r_index, name, value);
                }
 
                if (0 == strcmp (name,"ATS duration"))
                {
                        results[r_index].duration = value;
-                       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "[%i] ATS 
duration: %s %llu \n", r_index, name, value);
+                       // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "[%i] ATS 
duration: %s %llu \n", r_index, name, value);
                }
     }
     return GNUNET_OK;
@@ -387,7 +386,7 @@
   ok = 1;
   measurement_started = GNUNET_NO;
 #if VERBOSE
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting %i peers.\n", NUM_PEERS);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting %i peers.\n", peers);
 #endif
   peers_left = peers;
   pg = GNUNET_TESTING_daemons_start (cfg,




reply via email to

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