diff options
| author | ShevAbam <shevabam@gmail.com> | 2017-11-29 13:58:35 +0100 |
|---|---|---|
| committer | ShevAbam <shevabam@gmail.com> | 2017-11-29 13:58:35 +0100 |
| commit | 1d3a790919f96d168ae4036cc95ef26e3fc3be47 (patch) | |
| tree | b5dd18324a949ddf2d706fd024515bc0ed7391d0 /libs | |
| parent | 725787bcf7421143d6567e5b4f39ab5fd3fd8695 (diff) | |
Ping : add "round-trip" in awk regex
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/ping.php | 2 |
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])) { |
