]> err.no Git - varnish/commitdiff
Redraw must be checked when we update, we cannot trust
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 Aug 2006 10:56:06 +0000 (10:56 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 Aug 2006 10:56:06 +0000 (10:56 +0000)
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

index 547baa700593526eefb2217d7db7100bde21143a..3100a00550fd60ea8cf269b73e563c3bdd76e9fe 100644 (file)
@@ -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);