aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-03-13 21:14:26 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-03-13 21:14:26 +0000
commitd3132db7eccca512f03edae954f360a663a6e9e5 (patch)
tree7255f754a27007809184ef011b0823c0f6e32980 /plugins/check_tcp.c
parent18a68256da0a95dbb511ec28c86a4613d325ebb5 (diff)
downloadmonitoring-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.c4
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)
alarm (0);
printf
- ("%s %s - %7.3f second response time on port %d",
+ ("%s %s - %.3f second response time on port %d",
SERVICE,
state_text (result), elapsed_time, server_port);
if (status && strlen(status) > 0)
printf (" [%s]", status);
- printf ("|time=%7.3f\n", elapsed_time);
+ printf ("|time=%.3f\n", elapsed_time);
return result;
}