gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r31080 - in gnunet/src: gns hostlist


From: gnunet
Subject: [GNUnet-SVN] r31080 - in gnunet/src: gns hostlist
Date: Thu, 5 Dec 2013 16:13:11 +0100

Author: grothoff
Date: 2013-12-05 16:13:11 +0100 (Thu, 05 Dec 2013)
New Revision: 31080

Modified:
   gnunet/src/gns/gnunet-bcd.c
   gnunet/src/hostlist/hostlist-server.c
Log:
-fix timeout

Modified: gnunet/src/gns/gnunet-bcd.c
===================================================================
--- gnunet/src/gns/gnunet-bcd.c 2013-12-05 15:05:11 UTC (rev 31079)
+++ gnunet/src/gns/gnunet-bcd.c 2013-12-05 15:13:11 UTC (rev 31080)
@@ -321,7 +321,7 @@
   GNUNET_assert (MHD_YES == MHD_get_fdset (daemon_handle, &rs, &ws, &es, 
&max));
   haveto = MHD_get_timeout (daemon_handle, &timeout);
   if (haveto == MHD_YES)
-    tv.rel_value_us = (uint64_t) timeout;
+    tv.rel_value_us = (uint64_t) timeout * 1000LL;
   else
     tv = GNUNET_TIME_UNIT_FOREVER_REL;
   GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);

Modified: gnunet/src/hostlist/hostlist-server.c
===================================================================
--- gnunet/src/hostlist/hostlist-server.c       2013-12-05 15:05:11 UTC (rev 
31079)
+++ gnunet/src/hostlist/hostlist-server.c       2013-12-05 15:13:11 UTC (rev 
31080)
@@ -502,7 +502,7 @@
   GNUNET_assert (MHD_YES == MHD_get_fdset (daemon_handle, &rs, &ws, &es, 
&max));
   haveto = MHD_get_timeout (daemon_handle, &timeout);
   if (haveto == MHD_YES)
-    tv.rel_value_us = (uint64_t) timeout;
+    tv.rel_value_us = (uint64_t) timeout * 1000LL;
   else
     tv = GNUNET_TIME_UNIT_FOREVER_REL;
   GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);




reply via email to

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