Commit bba689d2 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Truncate %D varnishncsa format specifier to an integer value.

This follows the format Apache logs in.
parent 52a6e586
......@@ -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) * 1e6));
AZ(VSB_printf(CTX.vsb, "%d", (int)((t_end - t_start) * 1e6)));
break;
case 't':
AN(format->time_fmt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment