Ping : add "round-trip" in awk regex

This commit is contained in:
ShevAbam 2017-11-29 13:58:35 +01:00
parent 725787bcf7
commit 1d3a790919
1 changed files with 1 additions and 1 deletions

View File

@ -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]))
{