gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r5906 - GNUnet/src/applications/dht/tools
Date: Sat, 15 Dec 2007 02:30:48 -0700 (MST)

Author: grothoff
Date: 2007-12-15 02:30:47 -0700 (Sat, 15 Dec 2007)
New Revision: 5906

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

Modified: GNUnet/src/applications/dht/tools/dhttest2.c
===================================================================
--- GNUnet/src/applications/dht/tools/dhttest2.c        2007-12-15 09:20:21 UTC 
(rev 5905)
+++ GNUnet/src/applications/dht/tools/dhttest2.c        2007-12-15 09:30:47 UTC 
(rev 5906)
@@ -188,36 +188,41 @@
                               GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
                               &key, 2 * GNUNET_CRON_SECONDS, NULL, NULL));
   GNUNET_hash ("key2", 4, &key);
-  printf ("Peer2 gets key2.\n");
+  fprintf (stderr, "Peer2 gets key2");
   left = 10;
   do
     {
+      fprintf(stderr, ".");
       if (1 == GNUNET_DHT_get (cfg,
                                ectx,
                                GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
-                               &key, 30 * GNUNET_CRON_SECONDS, NULL, NULL))
+                               &key, 10 * GNUNET_CRON_SECONDS, NULL, NULL))
         break;
       left--;
     }
   while (left > 0);
+  fprintf(stderr, left > 0 ? "!\n" : "?\n");
+
   CHECK (left > 0);
   /* switch to peer1 */
   GNUNET_GC_set_configuration_value_string (cfg,
                                             ectx,
                                             "NETWORK", "HOST",
                                             "localhost:2087");
-  printf ("Peer1 gets key\n");
+  fprintf (stderr, "Peer1 gets key");
   left = 10;
   do
     {
+      fprintf(stderr, ".");
       if (1 == GNUNET_DHT_get (cfg,
                                ectx,
                                GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
-                               &key, 300 * GNUNET_CRON_SECONDS, NULL, NULL))
+                               &key, 10 * GNUNET_CRON_SECONDS, NULL, NULL))
         break;
       left--;
     }
   while (left > 0);
+  fprintf(stderr, left > 0 ? "!\n" : "?\n");
   CHECK (left > 0);
   /* end of actual test code */
 





reply via email to

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