mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2026-06-01 13:44:11 -04:00
Add favicon ; change measurements ; fix on ping module
This commit is contained in:
@@ -14,6 +14,11 @@ foreach ($hosts as $host)
|
||||
{
|
||||
exec('/bin/ping -qc 1 '.$host.' | awk -F/ \'/^rtt/ { print $5 }\'', $result);
|
||||
|
||||
if (!isset($result[0]))
|
||||
{
|
||||
$result[0] = 0;
|
||||
}
|
||||
|
||||
$datas[] = array(
|
||||
'host' => $host,
|
||||
'ping' => $result[0],
|
||||
|
||||
Reference in New Issue
Block a user