[master] 4656a5225 Dont use "scientific notation" for parameters.
Poul-Henning Kamp
phk at FreeBSD.org
Wed May 19 07:41:06 UTC 2021
commit 4656a5225876ae6dc3133b4afb56bd0d2b0e630b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed May 19 06:54:12 2021 +0000
Dont use "scientific notation" for parameters.
diff --git a/bin/varnishd/cache/cache_wrk.c b/bin/varnishd/cache/cache_wrk.c
index b063dee4c..32b53024d 100644
--- a/bin/varnishd/cache/cache_wrk.c
+++ b/bin/varnishd/cache/cache_wrk.c
@@ -685,7 +685,7 @@ pool_herder(void *priv)
if (pp->die) {
if (delay < 2)
- delay = 10e-3;
+ delay = .01;
else
delay = 1;
VTIM_sleep(delay);
diff --git a/bin/varnishd/mgt/mgt_param_tweak.c b/bin/varnishd/mgt/mgt_param_tweak.c
index 939b2a150..721e05292 100644
--- a/bin/varnishd/mgt/mgt_param_tweak.c
+++ b/bin/varnishd/mgt/mgt_param_tweak.c
@@ -434,7 +434,7 @@ tweak_poolparam(struct vsb *vsb, const struct parspec *par, const char *arg)
if (retval)
break;
retval = tweak_generic_double(vsb,
- &px.max_age, av[3], "0", "1e6", "%.0f");
+ &px.max_age, av[3], "0", "1000000", "%.0f");
if (retval)
break;
if (px.min_pool > px.max_pool) {
diff --git a/include/tbl/params.h b/include/tbl/params.h
index 763920984..5d1a3952e 100644
--- a/include/tbl/params.h
+++ b/include/tbl/params.h
@@ -1424,7 +1424,7 @@ PARAM_THREAD(
/* name */ thread_pool_fail_delay,
/* field */ fail_delay,
/* type */ timeout,
- /* min */ "10e-3",
+ /* min */ ".01",
/* max */ NULL,
/* def */ "0.2",
/* units */ "seconds",
More information about the varnish-commit
mailing list