added indexer stat to health page

This commit is contained in:
SJ
2013-08-09 10:13:54 +02:00
parent 8d201ed50a
commit 2a8c13d774
16 changed files with 221 additions and 2 deletions

View File

@ -198,6 +198,23 @@ class ModelHealthHealth extends Model {
return $dirSize;
}
public function indexer_stat() {
$data = array('', '');
if(file_exists(INDEXER_BEACON)) {
$st = stat(INDEXER_BEACON);
$t1 = date(DATE_TEMPLATE . " H:i", $st['mtime']);
$t2 = date(DATE_TEMPLATE . " H:i", $st['mtime']+30*60);
$data = array($t1, $t2);
}
return $data;
}
}