Commit 9e7307b7 authored by Nils Goroll's avatar Nils Goroll

Reset the hitrate only for varnish restarts

... not for any vsm change.

Fixes #2430
parent 3da2ed68
......@@ -1004,13 +1004,14 @@ do_curses(struct vsm *vsm, struct vsc *vsc, double delay)
VSC_State(vsc, newpt, delpt, NULL);
rebuild = 1;
rebuild = VSM_WRK_RESTARTED;
while (keep_running) {
vsm_status = VSM_Status(vsm);
rebuild |= vsm_status & ~(VSM_MGT_RUNNING|VSM_WRK_RUNNING);
if (rebuild) {
(void)VSC_Iter(vsc, vsm, NULL, NULL);
init_hitrate();
if (rebuild & (VSM_MGT_RESTARTED|VSM_WRK_RESTARTED))
init_hitrate();
build_pt_array();
redraw = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment