parent
a071710934
commit
d551678d95
|
@ -110,13 +110,6 @@ foreach ($servers as $server) {
|
||||||
];
|
];
|
||||||
$data[0] = '<span title="'.$server['version'].'">'.strip_tags($server['name']).'</span>';
|
$data[0] = '<span title="'.$server['version'].'">'.strip_tags($server['name']).'</span>';
|
||||||
|
|
||||||
$server_keepalive = time_w_fixed_tz($server['keepalive']);
|
|
||||||
|
|
||||||
if ($server['server_keepalive_utimestamp'] > 0) {
|
|
||||||
$server_keepalive = $server['server_keepalive_utimestamp'];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Status.
|
// Status.
|
||||||
$data[1] = ui_print_status_image(STATUS_SERVER_OK, '', true);
|
$data[1] = ui_print_status_image(STATUS_SERVER_OK, '', true);
|
||||||
if ($server['status'] == -1) {
|
if ($server['status'] == -1) {
|
||||||
|
@ -126,7 +119,7 @@ foreach ($servers as $server) {
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
} else if ((int) ($server['status'] === 0)
|
} else if ((int) ($server['status'] === 0)
|
||||||
|| (($date - $server_keepalive) > ($server['server_keepalive']) * 2)
|
|| (($date - time_w_fixed_tz($server['keepalive'])) > ($server['server_keepalive']) * 2)
|
||||||
) {
|
) {
|
||||||
$data[1] = ui_print_status_image(
|
$data[1] = ui_print_status_image(
|
||||||
STATUS_SERVER_DOWN,
|
STATUS_SERVER_DOWN,
|
||||||
|
|
Loading…
Reference in New Issue