]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: halog: -ad/-ac report the correct number of output lines
authorWilly Tarreau <w@1wt.eu>
Wed, 10 Oct 2012 11:41:52 +0000 (13:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Oct 2012 11:43:17 +0000 (13:43 +0200)
There was a lines_out++ left from earlier code, causing each input
line to be counted as an output line.

This fix also affects 1.4 and should be backported.

contrib/halog/halog.c

index 885b10d800c7c278f9dd0ba49d4ff6984316e092..50380f04454def573d831e6e8a1a894a54664da6 100644 (file)
@@ -1121,7 +1121,6 @@ void filter_accept_holes(const char *accept_field, const char *time_field, struc
 
        t2 = insert_value(&timers[0], tptr, val);
        t2->count++;
-       lines_out++;
        return;
 }