diff --git a/esm.config.json b/esm.config.json index 2e8c11f..b65412c 100644 --- a/esm.config.json +++ b/esm.config.json @@ -1,6 +1,6 @@ { "esm": { - "version": "2.2", + "version": "2.3", "website": "http://www.ezservermonitor.com", "check_updates": true, "auto_refresh": 0 diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..50fd957 Binary files /dev/null and b/favicon.ico differ diff --git a/index.php b/index.php index 8af45f3..4918e7b 100644 --- a/index.php +++ b/index.php @@ -11,9 +11,11 @@ $update = $Config->checkUpdate(); get('esm:auto_refresh') > 0): ?> + eZ Server Monitor - <?php echo Misc::getHostname(); ?> + @@ -117,17 +119,17 @@ $update = $Config->checkUpdate();
-
+

1 min

-
+

15 min

-
+

5 min

diff --git a/libs/Utils/Misc.class.php b/libs/Utils/Misc.class.php index 3fcfedb..d77bbf5 100644 --- a/libs/Utils/Misc.class.php +++ b/libs/Utils/Misc.class.php @@ -17,7 +17,7 @@ class Misc break; } - return round($filesize, $precision).' '.$units[$idUnit].'o'; + return round($filesize, $precision).' '.$units[$idUnit].'B'; } 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],