r2231 - in trunk/varnish-cache/bin: varnishhist varnishstat

des at projects.linpro.no des at projects.linpro.no
Thu Nov 8 17:52:40 CET 2007


Author: des
Date: 2007-11-08 17:52:40 +0100 (Thu, 08 Nov 2007)
New Revision: 2231

Modified:
   trunk/varnish-cache/bin/varnishhist/varnishhist.c
   trunk/varnish-cache/bin/varnishstat/varnishstat.c
Log:
Pressing 0-9 will change the delay to the corresponding power of two (e.g.
press 3 for 2^3 = 8 seconds)


Modified: trunk/varnish-cache/bin/varnishhist/varnishhist.c
===================================================================
--- trunk/varnish-cache/bin/varnishhist/varnishhist.c	2007-11-08 16:28:26 UTC (rev 2230)
+++ trunk/varnish-cache/bin/varnishhist/varnishhist.c	2007-11-08 16:52:40 UTC (rev 2231)
@@ -279,6 +279,18 @@
 		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;

Modified: trunk/varnish-cache/bin/varnishstat/varnishstat.c
===================================================================
--- trunk/varnish-cache/bin/varnishstat/varnishstat.c	2007-11-08 16:28:26 UTC (rev 2230)
+++ trunk/varnish-cache/bin/varnishstat/varnishstat.c	2007-11-08 16:52:40 UTC (rev 2231)
@@ -148,6 +148,18 @@
 		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;




More information about the varnish-commit mailing list