Mailing List Archive

r896 - trunk/varnish-cache/bin/varnishhist
Author: phk
Date: 2006-08-22 12:56:06 +0200 (Tue, 22 Aug 2006)
New Revision: 896

Modified:
trunk/varnish-cache/bin/varnishhist/varnishhist.c
Log:
Redraw must be checked when we update, we cannot trust
that we will actually have a timeout.


Modified: trunk/varnish-cache/bin/varnishhist/varnishhist.c
===================================================================
--- trunk/varnish-cache/bin/varnishhist/varnishhist.c 2006-08-22 10:46:16 UTC (rev 895)
+++ trunk/varnish-cache/bin/varnishhist/varnishhist.c 2006-08-22 10:56:06 UTC (rev 896)
@@ -134,6 +134,8 @@
next_hist = 0;
}
hh[fd] = 0;
+ if (redraw)
+ r_hist();
return (0);
}

@@ -192,8 +194,6 @@
i = VSL_Dispatch(vd, h_hist, NULL);
if (i < 0)
break;
- if (redraw)
- r_hist();
}

return (0);