mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
Fixed #758: sphinx index watcher
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user