Преглед изворни кода

Perf data without leading spaces and fix ANSI C complaint about \n

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@420 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon пре 23 година
родитељ
комит
18a68256da
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      plugins/check_smtp.c

+ 3 - 3
plugins/check_smtp.c

@@ -32,7 +32,7 @@ connects, but incorrect reponse messages from the host result in\n\
 STATE_WARNING return values.\n";
 STATE_WARNING return values.\n";
 
 
 const char *option_summary = "\
 const char *option_summary = "\
--H host [-p port] [-e expect] [-C command] [-f from addr] 
+-H host [-p port] [-e expect] [-C command] [-f from addr]\n\
          [-w warn] [-c crit] [-t timeout] [-n] [-v]";
          [-w warn] [-c crit] [-t timeout] [-n] [-v]";
 
 
 const char *options = "\
 const char *options = "\
@@ -200,10 +200,10 @@ main (int argc, char **argv)
 		result = STATE_WARNING;
 		result = STATE_WARNING;
 
 
 	if (verbose)
 	if (verbose)
-		printf ("SMTP %s - %7.3f sec. response time, %s|time=%7.3f\n",
+		printf ("SMTP %s - %.3f sec. response time, %s|time=%.3f\n",
 		        state_text (result), elapsed_time, buffer, elapsed_time);
 		        state_text (result), elapsed_time, buffer, elapsed_time);
 	else
 	else
-		printf ("SMTP %s - %7.3f second response time|time=%7.3f\n",
+		printf ("SMTP %s - %.3f second response time|time=%.3f\n",
 		        state_text (result), elapsed_time, elapsed_time);
 		        state_text (result), elapsed_time, elapsed_time);
 
 
 	return result;
 	return result;