gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6874 - GNUnet/src/applications/dht/tools


From: gnunet
Subject: [GNUnet-SVN] r6874 - GNUnet/src/applications/dht/tools
Date: Fri, 23 May 2008 23:30:05 -0600 (MDT)

Author: grothoff
Date: 2008-05-23 23:30:05 -0600 (Fri, 23 May 2008)
New Revision: 6874

Modified:
   GNUnet/src/applications/dht/tools/dht_multipeer_test.c
Log:
nicer

Modified: GNUnet/src/applications/dht/tools/dht_multipeer_test.c
===================================================================
--- GNUnet/src/applications/dht/tools/dht_multipeer_test.c      2008-05-24 
05:26:39 UTC (rev 6873)
+++ GNUnet/src/applications/dht/tools/dht_multipeer_test.c      2008-05-24 
05:30:05 UTC (rev 6874)
@@ -119,16 +119,19 @@
       /* wait for some DHT's to find each other! */
       sock = GNUNET_client_connection_create (NULL, cfg);
       left = 30;                /* how many iterations should we wait? */
+      printf ("Waiting for peer %u to DHT-connect",
+             i);
       while (GNUNET_OK ==
              GNUNET_STATS_get_statistics (NULL, sock, &waitForConnect, NULL))
         {
-          printf ("Waiting for peer to DHT-connect (%u iterations left)...\n",
-                  left);
-          sleep (5);
+         printf (".");
+         fflush(stdout);
+          sleep (2);
           left--;
           if (left == 0)
             break;
         }
+      printf (left > 0 ? " OK!\n" : "?\n");
       GNUNET_client_connection_destroy (sock);
       if (ok == 0)
         {
@@ -137,7 +140,6 @@
           GNUNET_GC_free (cfg);
           return -1;
         }
-
       GNUNET_hash (buf, 4, &key);
       value = GNUNET_malloc (8);
       memset (value, 'A' + i, 8);
@@ -174,7 +176,7 @@
             }
           if (k < NUM_ROUNDS)
             {
-              printf ("!\n");
+              printf (" OK!\n");
               found++;
             }
           else





reply via email to

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