瀏覽代碼

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;