Mailing List Archive

r1866 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2007-08-20 10:55:13 +0200 (Mon, 20 Aug 2007)
New Revision: 1866

Modified:
trunk/varnish-cache/bin/varnishd/cache_session.c
Log:
Assert that the timestats we need for VSL_StatSess are valid.


Modified: trunk/varnish-cache/bin/varnishd/cache_session.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_session.c 2007-08-20 08:38:29 UTC (rev 1865)
+++ trunk/varnish-cache/bin/varnishd/cache_session.c 2007-08-20 08:55:13 UTC (rev 1866)
@@ -340,6 +340,8 @@
AZ(sp->vcl);
VSL_stats->n_sess--;
ses_relsrcaddr(sp);
+ assert(!isnan(b->first));
+ assert(!isnan(sp->t_end));
VSL(SLT_StatSess, sp->id, "%s %s %.0f %ju %ju %ju %ju %ju %ju %ju",
sp->addr, sp->port, sp->t_end - b->first,
b->sess, b->req, b->pipe, b->pass,