Fixed #758: sphinx index watcher

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2018-03-18 13:54:13 +01:00
parent c918ad2a66
commit c12a876e59
9 changed files with 28 additions and 9 deletions

View File

@ -255,7 +255,15 @@ class ModelHealthHealth extends Model {
return $data;
}
public function get_current_sphinx_main_index_size() {
$size = 0;
if(file_exists(SPHINX_MAIN_INDEX_SIZE)) {
$size = (int) file_get_contents(SPHINX_MAIN_INDEX_SIZE);
}
return $size;
}
}
?>