[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    [3.0] 8015b1a Duration needs a unit
From:       Tollef Fog Heen <tfheen () varnish-cache ! org>
Date:       2012-05-24 12:51:12
Message-ID: E1SXXVY-0004pz-LF () project ! varnish-software ! com
[Download RAW message or body]

commit 8015b1ab869a60cb220b5d20ef7b6d183cea64ab
Author: Andreas Plesner Jacobsen <apj@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
 --------

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic