Commit 6f2e25f9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add 'w' suffix for "week" in time units.

Suggested by:	 "chen xiaoyong"



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3275 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2f5c128f
......@@ -79,6 +79,8 @@ TimeUnit(struct tokenlist *tl)
sc = 60.0 * 60.0;
else if (vcc_IdIs(tl->t, "d"))
sc = 60.0 * 60.0 * 24.0;
else if (vcc_IdIs(tl->t, "w"))
sc = 60.0 * 60.0 * 24.0 * 7.0;
else {
vsb_printf(tl->sb, "Unknown time unit ");
vcc_ErrToken(tl, tl->t);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment