diff --git a/libs/ping.php b/libs/ping.php index dc8121d..9b40268 100644 --- a/libs/ping.php +++ b/libs/ping.php @@ -12,7 +12,7 @@ else foreach ($hosts as $host) { - exec('/bin/ping -qc 1 '.$host.' | awk -F/ \'/^rtt/ { print $5 }\'', $result); + exec('/bin/ping -qc 1 '.$host.' | awk -F/ \'/^(rtt|round-trip)/ { print $5 }\'', $result); if (!isset($result[0])) {