소스 검색

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 년 전
부모
커밋
94a0d099c2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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;