From: phk Date: Mon, 20 Aug 2007 08:55:13 +0000 (+0000) Subject: Assert that the timestats we need for VSL_StatSess are valid. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e51875d35c250a52b7ede788c6ccc522116722f6;p=varnish Assert that the timestats we need for VSL_StatSess are valid. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1866 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_session.c b/varnish-cache/bin/varnishd/cache_session.c index ddec49ca..5619a204 100644 --- a/varnish-cache/bin/varnishd/cache_session.c +++ b/varnish-cache/bin/varnishd/cache_session.c @@ -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,