Commit 3fe065cd authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vtc_process: Mitigate screen refresh race

It's otherwise too tight for for varnishstat's default refresh rate,
possibly for varnishhist and varnishtop too.
parent 7ae60b72
......@@ -304,7 +304,7 @@ term_expect_text(struct process *pp,
if (y < 0 || y > pp->nlin)
vtc_fatal(pp->vl, "YYY %d nlin %d", y, pp->nlin);
x = strtoul(col, NULL, 0);
for(l = 0; l < 10 && x > pp->ncol; l++) // wait for screen change
for(l = 0; l <= 10 && x > pp->ncol; l++) // wait for screen change
usleep(100000);
if (x < 0 || x > pp->ncol)
vtc_fatal(pp->vl, "XXX %d ncol %d", x, pp->ncol);
......
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