From c207216fa2c614eaaff0b62eed92e20f9939a46f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 15 Feb 2016 09:55:57 +0000 Subject: Fix constraints on curl_fetch_timeout option. 5 <= n <= 60 seconds. --- utils/nsoption.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/nsoption.c b/utils/nsoption.c index ccdd23ae9..b23bd8764 100644 --- a/utils/nsoption.c +++ b/utils/nsoption.c @@ -189,9 +189,9 @@ static void nsoption_validate(struct nsoption_s *opts, struct nsoption_s *defs) if (opts[NSOPTION_max_retried_fetches].value.u == 0) opts[NSOPTION_max_retried_fetches].value.u = 1; if (opts[NSOPTION_curl_fetch_timeout].value.u < 5) - opts[NSOPTION_max_retried_fetches].value.u = 5; + opts[NSOPTION_curl_fetch_timeout].value.u = 5; if (opts[NSOPTION_curl_fetch_timeout].value.u > 60) - opts[NSOPTION_max_retried_fetches].value.u = 60; + opts[NSOPTION_curl_fetch_timeout].value.u = 60; while ((opts[NSOPTION_curl_fetch_timeout].value.u * opts[NSOPTION_max_retried_fetches].value.u) > 60) opts[NSOPTION_max_retried_fetches].value.u--; -- cgit v1.2.3