r296 - trunk/varnish-cache/bin/varnishlog

phk at projects.linpro.no phk at projects.linpro.no
Tue Jul 4 15:45:16 CEST 2006


Author: phk
Date: 2006-07-04 15:45:16 +0200 (Tue, 04 Jul 2006)
New Revision: 296

Modified:
   trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
Shorter sleeps:  1s -> 50msec


Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-07-04 13:44:07 UTC (rev 295)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-07-04 13:45:16 UTC (rev 296)
@@ -135,7 +135,7 @@
 		p = VSL_NextLog(loghead, &q);
 		if (p == NULL) {
 			fflush(stdout);
-			sleep(1);
+			usleep(50000);
 			continue;
 		}
 		if (o_flag) {




More information about the varnish-commit mailing list