package: haproxy
[packages.git] / net / haproxy / patches / 0005-BUG-MINOR-halog-ad-ac-report-the-correct-numbe-1.4.22.diff
1 From 113e6626ca26de31e2523a5b197a5bac4ca73dcc Mon Sep 17 00:00:00 2001
2 From: Willy Tarreau <w@1wt.eu>
3 Date: Wed, 10 Oct 2012 13:41:52 +0200
4 Subject: BUG/MINOR: halog: -ad/-ac report the correct number of output lines
5
6 There was a lines_out++ left from earlier code, causing each input
7 line to be counted as an output line.
8
9 This fix also affects 1.4 and should be backported.
10 (cherry picked from commit 0a706880160167f872247723c6a041eb31a20c29)
11 ---
12  contrib/halog/halog.c |    1 -
13  1 files changed, 0 insertions(+), 1 deletions(-)
14
15 diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c
16 index e4d62e9..8f7f04a 100644
17 --- a/contrib/halog/halog.c
18 +++ b/contrib/halog/halog.c
19 @@ -1111,7 +1111,6 @@ void filter_accept_holes(const char *accept_field, const char *time_field, struc
20  
21         t2 = insert_value(&timers[0], tptr, val);
22         t2->count++;
23 -       lines_out++;
24         return;
25  }
26  
27 -- 
28 1.7.1
29