diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-13 21:14:26 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-13 21:14:26 +0000 |
commit | d3132db7eccca512f03edae954f360a663a6e9e5 (patch) | |
tree | 7255f754a27007809184ef011b0823c0f6e32980 /plugins/check_tcp.c | |
parent | 18a68256da0a95dbb511ec28c86a4613d325ebb5 (diff) | |
download | monitoring-plugins-d3132db7eccca512f03edae954f360a663a6e9e5.tar.gz |
Strip leading spaces in perf data
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@421 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index a7d8e6f2..7d115513 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -337,14 +337,14 @@ main (int argc, char **argv) | |||
337 | alarm (0); | 337 | alarm (0); |
338 | 338 | ||
339 | printf | 339 | printf |
340 | ("%s %s - %7.3f second response time on port %d", | 340 | ("%s %s - %.3f second response time on port %d", |
341 | SERVICE, | 341 | SERVICE, |
342 | state_text (result), elapsed_time, server_port); | 342 | state_text (result), elapsed_time, server_port); |
343 | 343 | ||
344 | if (status && strlen(status) > 0) | 344 | if (status && strlen(status) > 0) |
345 | printf (" [%s]", status); | 345 | printf (" [%s]", status); |
346 | 346 | ||
347 | printf ("|time=%7.3f\n", elapsed_time); | 347 | printf ("|time=%.3f\n", elapsed_time); |
348 | 348 | ||
349 | return result; | 349 | return result; |
350 | } | 350 | } |