From 81cdb52282e79d2bdba35659f7be9c525343b941 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 22 Aug 2006 10:56:06 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishhist/varnishhist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5