]> err.no Git - varnish/commitdiff
Assert that the timestats we need for VSL_StatSess are valid.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 08:55:13 +0000 (08:55 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 08:55:13 +0000 (08:55 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1866 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_session.c

index ddec49ca4e55acba8aca718718e3035b158173b0..5619a2045e284363f28c7bbd8e675b4fbe67c2c6 100644 (file)
@@ -340,6 +340,8 @@ SES_Delete(struct sess *sp)
        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,