[master] 9b6115d Set the timeout for the same window we call getch for.
Poul-Henning Kamp
phk at FreeBSD.org
Tue Jan 16 09:48:07 UTC 2018
commit 9b6115d5730a3ee9c722e992853f66480473cf57
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Jan 16 07:49:47 2018 +0000
Set the timeout for the same window we call getch for.
diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index 56d442f..ce07b7f 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -1020,9 +1020,10 @@ do_curses(struct vsm *vsm, struct vsc *vsc, double delay)
draw_screen();
t = (t_sample + interval - now) * 1000;
- timeout(t);
+ wtimeout(w_status, t);
- switch (ch = wgetch(w_status)) {
+ ch = wgetch(w_status);
+ switch (ch) {
case ERR:
break;
#ifdef KEY_RESIZE /* sigh, Solaris lacks this.. */
More information about the varnish-commit
mailing list