[experimental-ims] 7755ce5 Duration needs a unit

Andreas Plesner Jacobsen apj at mutt.dk
Thu Dec 18 10:27:47 CET 2014


commit 7755ce56a67e03a0f8f7e6cccbaa6992c5951619
Author: Andreas Plesner Jacobsen <apj at mutt.dk>
Date:   Thu May 24 14:17:52 2012 +0200

    Duration needs a unit

diff --git a/doc/sphinx/reference/vmod_std.rst b/doc/sphinx/reference/vmod_std.rst
index a1ece16..984331e 100644
--- a/doc/sphinx/reference/vmod_std.rst
+++ b/doc/sphinx/reference/vmod_std.rst
@@ -124,7 +124,7 @@ Description
 	the usual s (seconds), m (minutes), h (hours), d (days) and w
 	(weeks) units. If *s* fails to parse, *fallback* will be used.
 Example
-	set beresp.ttl = std.duration("1w", 3600);
+	set beresp.ttl = std.duration("1w", 3600s);
 
 integer
 --------



More information about the varnish-commit mailing list