commit 083c63426f6dde2a1f9b28cd7ae0b074afb95f3f
parent 063c6449bac4b4e12723779acdc547198aec7e15
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Thu, 13 Aug 2026 18:26:55 +0200
dht: make gnunet-dht-monitor run for its documented 60s
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/cli/dht/gnunet-dht-monitor.c b/src/cli/dht/gnunet-dht-monitor.c
@@ -37,9 +37,11 @@ static unsigned int block_type;
static char *query_key;
/**
- * User supplied timeout value (in seconds)
+ * User supplied timeout value. #GNUNET_TIME_Relative counts
+ * microseconds, so this is 60 seconds; the plain 60000 it used to be was
+ * 60 milliseconds and made the monitor exit immediately.
*/
-static struct GNUNET_TIME_Relative timeout_request = { 60000 };
+static struct GNUNET_TIME_Relative timeout_request = { 60 * 1000 * 1000 };
/**
* Be verbose
@@ -312,7 +314,8 @@ main (int argc, char *const *argv)
'T',
"timeout",
"TIMEOUT",
- gettext_noop ("how long should the monitor command run"),
+ gettext_noop (
+ "how long should the monitor command run (default: 60 s, use \"forever\" to run until interrupted)"),
&timeout_request),
GNUNET_GETOPT_option_flag ('V',