From: Willy Tarreau Date: Wed, 14 Oct 2009 13:16:29 +0000 (+0200) Subject: [CONTRIB] halog: support searching by response time X-Git-Tag: v1.4-dev5~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bdfd968ed9c9eb30a1d46f9427e6802d7164476;p=thirdparty%2Fhaproxy.git [CONTRIB] halog: support searching by response time Also support inverting search criteria when specified uppercase --- diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index 32b4a7fb33..27e09617db 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -58,6 +58,10 @@ struct timer { #define FILT_ACC_COUNT 0x20 #define FILT_GRAPH_TIMERS 0x40 #define FILT_PERCENTILE 0x80 +#define FILT_TIME_RESP 0x100 + +#define FILT_INVERT_ERRORS 0x200 +#define FILT_INVERT_TIME_RESP 0x400 unsigned int filter = 0; unsigned int filter_invert = 0; @@ -69,7 +73,7 @@ void die(const char *msg) { fprintf(stderr, "%s" - "Usage: halog [-c] [-v] [-gt] [-pct] [-s ] [-e] [-ad ] [-ac ] < file.log\n" + "Usage: halog [-c] [-v] [-gt] [-pct] [-s ] [-e|-E] [-rt|-RT