]> err.no Git - varnish/commitdiff
Pressing 0-9 will change the delay to the corresponding power of two (e.g.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 8 Nov 2007 16:52:40 +0000 (16:52 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 8 Nov 2007 16:52:40 +0000 (16:52 +0000)
press 3 for 2^3 = 8 seconds)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2231 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishhist/varnishhist.c
varnish-cache/bin/varnishstat/varnishstat.c

index 0d5b83ec99369a591e6159a07ed9132b18bf95bb..1457b7cd408fb501ea7e2ae226dd69cb3fc0755b 100644 (file)
@@ -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;
index ec85884b2e41a71f6559a1ab25960484ca03e863..674f2ff45775df58d581476d53adcb48314b178f 100644 (file)
@@ -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;