Commit 90de0b4a authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Pressing 0-9 will change the delay to the corresponding power of two (e.g.

press 3 for 2^3 = 8 seconds)


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2231 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d760dde4
......@@ -279,6 +279,18 @@ do_curses(struct VSL_data *vd)
case 'q':
endwin();
return;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
delay = 1 << (ch - '0');
break;
default:
beep();
break;
......
......@@ -148,6 +148,18 @@ do_curses(struct varnish_stats *VSL_stats, int delay)
case 'q':
endwin();
exit(0);
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
delay = 1 << (ch - '0');
break;
default:
beep();
break;
......
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