[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7334 - GNUnet/src/applications/dht/tools
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7334 - GNUnet/src/applications/dht/tools |
Date: |
Thu, 26 Jun 2008 11:09:33 -0600 (MDT) |
Author: grothoff
Date: 2008-06-26 11:09:33 -0600 (Thu, 26 Jun 2008)
New Revision: 7334
Modified:
GNUnet/src/applications/dht/tools/dht-query.c
Log:
better
Modified: GNUnet/src/applications/dht/tools/dht-query.c
===================================================================
--- GNUnet/src/applications/dht/tools/dht-query.c 2008-06-26 17:04:45 UTC
(rev 7333)
+++ GNUnet/src/applications/dht/tools/dht-query.c 2008-06-26 17:09:33 UTC
(rev 7334)
@@ -36,7 +36,7 @@
* How long should a "GET" run (or how long should
* content last on the network).
*/
-static GNUNET_CronTime timeout;
+static GNUNET_CronTime timeout = 30 * GNUNET_CRON_SECONDS;
static struct GNUNET_GE_Context *ectx;
@@ -67,7 +67,7 @@
unsigned int type,
unsigned int size, const char *data, void *unused)
{
- printf ("%s: '%.*s'\n", "get", size, data);
+ printf ("%s: `%.*s'\n", "get", size, data);
return GNUNET_OK;
}
@@ -81,14 +81,12 @@
#if DEBUG_DHT_QUERY
GNUNET_GE_LOG (ectx,
GNUNET_GE_DEBUG | GNUNET_GE_REQUEST | GNUNET_GE_USER,
- "Issuing '%s(%s)' command.\n", "get", key);
+ "Issuing `%s(%s)' command.\n", "get", key);
#endif
- if (timeout == 0)
- timeout = 30 * GNUNET_CRON_SECONDS;
ret = GNUNET_DHT_get_start (ctx, GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
&hc);
if (ret == GNUNET_SYSERR)
- printf (_("%s(%s) failed.\n"), "get", key);
+ printf (_("`%s(%s)' failed.\n"), "get", key);
GNUNET_thread_sleep(timeout);
ret = GNUNET_DHT_get_stop(ctx,
GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
@@ -106,19 +104,17 @@
#if DEBUG_DHT_QUERY
GNUNET_GE_LOG (ectx,
GNUNET_GE_DEBUG | GNUNET_GE_REQUEST | GNUNET_GE_USER,
- _("Issuing '%s(%s,%s)' command.\n"), "put", key, value);
+ _("Issuing `%s(%s,%s)' command.\n"), "put", key, value);
#endif
- if (timeout == 0)
- timeout = 30 * GNUNET_CRON_MINUTES;
if (GNUNET_OK ==
GNUNET_DHT_put (cfg, ectx, &hc, GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
strlen (value), value))
{
- printf (_("'%s(%s,%s)' succeeded\n"), "put", key, value);
+ printf (_("`%s(%s,%s)' succeeded\n"), "put", key, value);
}
else
{
- printf (_("'%s(%s,%s)' failed.\n"), "put", key, value);
+ printf (_("`%s(%s,%s)' failed.\n"), "put", key, value);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7334 - GNUnet/src/applications/dht/tools,
gnunet <=