run quota-recalc only if fsck fixed something

This commit is contained in:
Ralf Becker 2022-01-09 17:31:44 +02:00
parent 1f4cb50e74
commit fc9ab417ed

View File

@ -134,9 +134,11 @@ class Utils extends StreamWrapper
} }
// also run quota recalc as fsck might have (re-)moved files // also run quota recalc as fsck might have (re-)moved files
if (!$check_only && $msgs)
{
list($dirs, $iterations, $time) = Vfs\Sqlfs\Utils::quotaRecalc(); list($dirs, $iterations, $time) = Vfs\Sqlfs\Utils::quotaRecalc();
$msgs[] = lang("Recalculated %1 directories in %2 iterations and %3 seconds", $dirs, $iterations, number_format($time, 1)); $msgs[] = lang("Recalculated %1 directories in %2 iterations and %3 seconds", $dirs, $iterations, number_format($time, 1));
}
return $msgs; return $msgs;
} }