[3.0] 8015b1a Duration needs a unit

Tollef Fog Heen tfheen at varnish-cache.org
Thu May 24 14:51:12 CEST 2012


commit 8015b1ab869a60cb220b5d20ef7b6d183cea64ab
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