Moving status updater to own namespace
parent
003fc4569c
commit
fc54c909fc
|
@ -35,7 +35,7 @@ $servers = $db->select(
|
||||||
array('server_id', 'ip', 'port', 'label', 'type', 'status', 'active', 'email', 'sms')
|
array('server_id', 'ip', 'port', 'label', 'type', 'status', 'active', 'email', 'sms')
|
||||||
);
|
);
|
||||||
|
|
||||||
$updater = new \psm\UpdaterStatus();
|
$updater = new \psm\Util\Updater\Status();
|
||||||
|
|
||||||
foreach ($servers as $server) {
|
foreach ($servers as $server) {
|
||||||
$status_org = $server['status'];
|
$status_org = $server['status'];
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
* @link http://phpservermon.neanderthal-technology.com/
|
* @link http://phpservermon.neanderthal-technology.com/
|
||||||
**/
|
**/
|
||||||
|
|
||||||
namespace psm;
|
namespace psm\Util\Updater;
|
||||||
|
|
||||||
class UpdaterStatus {
|
class Status {
|
||||||
public $error;
|
public $error;
|
||||||
public $notify;
|
public $notify;
|
||||||
public $rtime = 0;
|
public $rtime = 0;
|
Loading…
Reference in New Issue