mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2026-06-10 17:58:43 -04:00
Ping : add "round-trip" in awk regex
This commit is contained in:
+1
-1
@@ -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]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user