Explorar o código

patch for Suse 8.0 loss output

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@27 f882894a-f735-0410-b71e-b25c423dba1c
Subhendu Ghosh %!s(int64=24) %!d(string=hai) anos
pai
achega
94a0d099c2
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      plugins/check_ping.c

+ 4 - 1
plugins/check_ping.c

@@ -396,7 +396,10 @@ run_ping (char *command_line)
 					(input_buffer, "%*d packets transmitted, %*d packets received, %d%% packet loss",
 						&pl) == 1
 				|| sscanf 
-					(input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1	
+					(input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1
+				|| sscanf
+					(input_buffer, "%*d packets transmitted, %*d received, %d%% loss, time", &pl) == 1
+					/* Suse 8.0 as reported by Richard * Brodie */
 				)
 			continue;