fix for issue #12, status was not saved to uptime table
parent
d32eafe9ec
commit
6be84f3449
|
@ -78,13 +78,8 @@ foreach ($servers as $server) {
|
|||
array('server_id' => $server['server_id'])
|
||||
);
|
||||
|
||||
if(status_new == "on") {
|
||||
// Status is 1 if online
|
||||
psm_log_uptime($server['server_id'], 1, $updater->getRtime());
|
||||
} else {
|
||||
// Status is 0 if offline
|
||||
psm_log_uptime($server['server_id'], 0, $updater->getRtime());
|
||||
}
|
||||
$log_status = ($status_new == 'on') ? 1 : 0;
|
||||
psm_log_uptime($server['server_id'], $log_status, $updater->getRtime());
|
||||
}
|
||||
|
||||
psm_update_conf('cron_running', 0);
|
||||
|
|
Loading…
Reference in New Issue