replaced missing function defition from sphinx size calculation

This commit is contained in:
SJ 2013-04-15 16:09:59 +02:00
parent 2d3be5a92c
commit f6dd906171

View File

@ -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);
} }
} }