[master] dc66d1c Reduce logged timer precision to microseconds

Martin Blix Grydeland martin at varnish-software.com
Wed Mar 26 12:42:22 CET 2014


commit dc66d1cbdcba1e5ac2ccf428ac147d2ed6788bb2
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Mon Mar 24 14:34:15 2014 +0100

    Reduce logged timer precision to microseconds

diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index 19048c2..900ecda 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -356,7 +356,7 @@ VSLb_ts(struct vsl_log *vsl, const char *event, double first, double *pprev,
 {
 
 	assert(!isnan(now) && now != 0.);
-	VSLb(vsl, SLT_Timestamp, "%s: %.9f %.9f %.9f",
+	VSLb(vsl, SLT_Timestamp, "%s: %.6f %.6f %.6f",
 	    event, now, now - first, now - *pprev);
 	*pprev = now;
 }



More information about the varnish-commit mailing list