diff options
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 57e1f0df..a977077c 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -366,16 +366,16 @@ main (int argc, char **argv) if(match == -2) printf ("|%s", fperfdata ("time", elapsed_time, "s", - TRUE, 0, - TRUE, 0, + (flags & FLAG_TIME_WARN ? TRUE : FALSE), 0, + (flags & FLAG_TIME_CRIT ? TRUE : FALSE), 0, TRUE, 0, TRUE, socket_timeout) ); else printf("|%s", fperfdata ("time", elapsed_time, "s", - TRUE, warning_time, - TRUE, critical_time, + (flags & FLAG_TIME_WARN ? TRUE : FALSE), warning_time, + (flags & FLAG_TIME_CRIT ? TRUE : FALSE), critical_time, TRUE, 0, TRUE, socket_timeout) ); |