Skip to content

Commit

Permalink
MDL-6850 Removed apparent-size from du
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jul 18, 2008
1 parent 81a74ce commit 603cf45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Expand Up @@ -4025,7 +4025,7 @@ function get_directory_size($rootdir, $excludefile='') {


// do it this way if we can, it's much faster // do it this way if we can, it's much faster
if (!empty($CFG->pathtodu) && is_executable(trim($CFG->pathtodu))) { if (!empty($CFG->pathtodu) && is_executable(trim($CFG->pathtodu))) {
$command = trim($CFG->pathtodu).' -sk --apparent-size '.escapeshellarg($rootdir); $command = trim($CFG->pathtodu).' -sk '.escapeshellarg($rootdir);
exec($command,$output,$return); exec($command,$output,$return);
if (is_array($output)) { if (is_array($output)) {
return get_real_size(intval($output[0]).'k'); // we told it to return k. return get_real_size(intval($output[0]).'k'); // we told it to return k.
Expand Down

0 comments on commit 603cf45

Please sign in to comment.