From 1d3a790919f96d168ae4036cc95ef26e3fc3be47 Mon Sep 17 00:00:00 2001 From: ShevAbam Date: Wed, 29 Nov 2017 13:58:35 +0100 Subject: [PATCH] Ping : add "round-trip" in awk regex --- libs/ping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])) {