mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 05:30:12 +01:00
replaced missing function defition from sphinx size calculation
This commit is contained in:
parent
2d3be5a92c
commit
f6dd906171
@ -154,9 +154,8 @@ class ModelHealthHealth extends Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function get_sphinx_size() {
|
public function get_sphinx_size($directory = DIR_SPHINX) {
|
||||||
$dirSize=0;
|
$dirSize=0;
|
||||||
$directory = DIR_SPHINX;
|
|
||||||
|
|
||||||
if(!$dh=opendir($directory)) {
|
if(!$dh=opendir($directory)) {
|
||||||
return false;
|
return false;
|
||||||
@ -171,7 +170,7 @@ class ModelHealthHealth extends Model {
|
|||||||
$dirSize += filesize($directory."/".$file);
|
$dirSize += filesize($directory."/".$file);
|
||||||
}
|
}
|
||||||
if(is_dir($directory."/".$file)) {
|
if(is_dir($directory."/".$file)) {
|
||||||
$dirSize += getDirectorySize($directory."/".$file);
|
$dirSize += $this->get_sphinx_size($directory."/".$file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user