fix: webui formatDirSize

pull/568/head
sigoden 2025-04-07 06:56:54 +08:00
parent 4fbdec2878
commit 72ebcdfb7d
1 changed files with 2 additions and 2 deletions

View File

@ -881,8 +881,8 @@ function padZero(value, size) {
}
function formatDirSize(size) {
const unit = file.size === 1 ? "item" : "items";
const num = size >= MAX_SUBPATHS_COUNT ? `>${MAX_SUBPATHS_COUNT - 1}` : `${file.size}`;
const unit = size === 1 ? "item" : "items";
const num = size >= MAX_SUBPATHS_COUNT ? `>${MAX_SUBPATHS_COUNT - 1}` : `${size}`;
return ` ${num} ${unit}`;
}