diff options
| author | ShevAbam <shevabam@gmail.com> | 2014-11-11 15:28:05 +0100 |
|---|---|---|
| committer | ShevAbam <shevabam@gmail.com> | 2014-11-11 15:28:05 +0100 |
| commit | 6e4e1f3d0b14a0c631cfde84fc9ad296dd6c367f (patch) | |
| tree | 5a0e9be23b3404d6b04a305cfa95899954e8817c /libs/ping.php | |
| parent | e78dc167c2f5cfc2ec92c9d299073b493e6f1c3d (diff) | |
Add favicon ; change measurements ; fix on ping module
Diffstat (limited to 'libs/ping.php')
| -rw-r--r-- | libs/ping.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ping.php b/libs/ping.php index 1cadb70..9ea0ec8 100644 --- a/libs/ping.php +++ b/libs/ping.php @@ -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], |
