]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: halog: fix broken output limitation
authorWilly Tarreau <w@1wt.eu>
Tue, 13 Nov 2012 19:48:15 +0000 (20:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Nov 2012 19:48:15 +0000 (20:48 +0100)
commita1629a59d17208897622d4e0d8ecddf157d55074
tree1640ea2d3249e6778e8bfe22fc497953804241e3
parent96aa6b32d7ad2be92b69badcdf693e0815b53387
BUG: halog: fix broken output limitation

Commit 667c905f introduced parameter -m to halog which limits the size
of the output. Unfortunately it is completely broken in that it doesn't
check that the limit was previously set or not, and also prevents a
simple counting operation from returning anything if a limit is not set.

Note that the -gt and -pct outputs behave differently in face of this
limit, since they count the valid output lines BEFORE actually producing
the data, so the limit really applies to valid input lines.
contrib/halog/halog.c