aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShevAbam <shevabam@gmail.com>2017-11-29 13:58:35 +0100
committerShevAbam <shevabam@gmail.com>2017-11-29 13:58:35 +0100
commit1d3a790919f96d168ae4036cc95ef26e3fc3be47 (patch)
treeb5dd18324a949ddf2d706fd024515bc0ed7391d0
parent725787bcf7421143d6567e5b4f39ab5fd3fd8695 (diff)
Ping : add "round-trip" in awk regex
-rw-r--r--libs/ping.php2
1 files changed, 1 insertions, 1 deletions
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]))
{