[master] 75eaba8 Varnishncsa %D format option is now in microseconds.
Dag Haavi Finstad
daghf at varnish-software.com
Thu Mar 27 11:35:50 CET 2014
commit 75eaba88157ddbdb3d69d699f8e5feb3d7065ae0
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date: Thu Mar 27 11:32:52 2014 +0100
Varnishncsa %D format option is now in microseconds.
diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index 75a0452..a38264b 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -276,7 +276,7 @@ format_time(const struct format *format)
switch (format->time_type) {
case 'D':
- AZ(VSB_printf(CTX.vsb, "%f", t_end - t_start));
+ AZ(VSB_printf(CTX.vsb, "%f", (t_end - t_start) * 1e6));
break;
case 't':
AN(format->time_fmt);
More information about the varnish-commit
mailing list