mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 00:27:03 +02:00
webui fixes
This commit is contained in:
@ -215,6 +215,21 @@ class ModelHealthHealth extends Model {
|
||||
}
|
||||
|
||||
|
||||
public function purge_stat() {
|
||||
$data = array('', '');
|
||||
|
||||
if(file_exists(PURGE_BEACON)) {
|
||||
|
||||
$st = stat(PURGE_BEACON);
|
||||
$t1 = date(DATE_TEMPLATE . " H:i", $st['mtime']);
|
||||
$t2 = date(DATE_TEMPLATE . " H:i", $st['mtime']+86400);
|
||||
|
||||
$data = array($t1, $t2);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user