From e7d90fd46364afb25c9c0cb9c1a5784f7aac6bf9 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期一, 13 四月 2026 16:15:36 +0800
Subject: [PATCH] 推送修改

---
 src/main/java/com/wgcloud/util/PingUtil.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/wgcloud/util/PingUtil.java b/src/main/java/com/wgcloud/util/PingUtil.java
index 14b57f7..b2e4005 100644
--- a/src/main/java/com/wgcloud/util/PingUtil.java
+++ b/src/main/java/com/wgcloud/util/PingUtil.java
@@ -37,10 +37,11 @@
         String pingCommand;
         Runtime r = Runtime.getRuntime();
         String osName = System.getProperty("os.name");
+        System.out.println( "osName锛�"+osName);
         if (osName.contains("Windows")) {
             pingCommand = "ping " + ipAddress + " -n " + count + " -w " + (timeOut * 1000);
         } else {
-            pingCommand = "ping " + " -c " + count + " -w " + timeOut + " " + ipAddress;
+            pingCommand = "ping " + " -c " + count +  " "  + ipAddress;
         }
         Integer diffTimes = StaticKeys.OUT_TIME_MARK;
         try {
@@ -87,6 +88,7 @@
             //鏌ユ壘鏁存暟鐨勬鍒� begin
             String regInt = "(=\\d+ms)";
             Pattern patternInt = Pattern.compile(regInt);
+
             Matcher matcherInt = patternInt.matcher(line);
             while (matcherInt.find()) {
                 String groupStr = matcherInt.group(1);
@@ -105,6 +107,7 @@
             String regDouble = "(=\\d+.\\d+ms)";
             Pattern patternDouble = Pattern.compile(regDouble);
             Matcher matcherDouble = patternDouble.matcher(line);
+
             while (matcherDouble.find()) {
                 String groupStr = matcherDouble.group(1);
                 logger.debug(line + "--------------" + groupStr);

--
Gitblit v1.9.1