Pārlūkot izejas kodu

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 24 gadi atpakaļ
vecāks
revīzija
94a0d099c2
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  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",
 					(input_buffer, "%*d packets transmitted, %*d packets received, %d%% packet loss",
 						&pl) == 1
 						&pl) == 1
 				|| sscanf 
 				|| 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;
 			continue;