From d3132db7eccca512f03edae954f360a663a6e9e5 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 13 Mar 2003 21:14:26 +0000 Subject: Strip leading spaces in perf data git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@421 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_tcp.c') 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; } -- cgit v1.2.3