Merge branch 'master' into dev

This commit is contained in:
2023-12-27 00:18:54 -05:00
3 changed files with 14 additions and 5 deletions

View File

@ -21,7 +21,7 @@
}
}
function humanfilesize($size, $unit="") {
function humanfilesize($size, $unit = "") {
if ((!$unit && $size >= 1 << 30) || $unit == "GB")
return number_format($size / (1 << 30),2)."GB";
if ((!$unit && $size >= 1 << 20) || $unit == "MB")