From: phk Date: Tue, 22 Aug 2006 10:56:06 +0000 (+0000) Subject: Redraw must be checked when we update, we cannot trust X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81cdb52282e79d2bdba35659f7be9c525343b941;p=varnish Redraw must be checked when we update, we cannot trust that we will actually have a timeout. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@896 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishhist/varnishhist.c b/varnish-cache/bin/varnishhist/varnishhist.c index 547baa70..3100a005 100644 --- a/varnish-cache/bin/varnishhist/varnishhist.c +++ b/varnish-cache/bin/varnishhist/varnishhist.c @@ -134,6 +134,8 @@ h_hist(void *priv, unsigned tag, unsigned fd, unsigned len, unsigned spec, const next_hist = 0; } hh[fd] = 0; + if (redraw) + r_hist(); return (0); } @@ -192,8 +194,6 @@ main(int argc, char **argv) i = VSL_Dispatch(vd, h_hist, NULL); if (i < 0) break; - if (redraw) - r_hist(); } return (0);