[master] 1ef6740 Don't go exponential in VSL
Poul-Henning Kamp
phk at varnish-cache.org
Tue Apr 12 13:57:22 CEST 2011
commit 1ef67408352ed7350d7ea4e8da8d713c0a6429e0
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Apr 12 11:56:00 2011 +0000
Don't go exponential in VSL
diff --git a/bin/varnishd/rfc2616.c b/bin/varnishd/rfc2616.c
index d581444..20d3b7c 100644
--- a/bin/varnishd/rfc2616.c
+++ b/bin/varnishd/rfc2616.c
@@ -170,7 +170,7 @@ RFC2616_Ttl(const struct sess *sp)
}
/* calculated TTL, Our time, Date, Expires, max-age, age */
- WSP(sp, SLT_TTL, "%u RFC %g %g %g %g %u %u", sp->xid,
+ WSP(sp, SLT_TTL, "%u RFC %g %.0f %.0f %.0f %u %u", sp->xid,
ttl, sp->wrk->entered, h_date, h_expires, max_age, age);
return (ttl);
More information about the varnish-commit
mailing list