Merge branch '1.x' of gitee.com:karson/fastadmin into 1.x

pull/460/MERGE
Karson 2023-08-30 16:57:37 +08:00
commit 2fe68b4c27
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ if (!function_exists('format_bytes')) {
function format_bytes($size, $delimiter = '', $precision = 2)
{
$units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB');
for ($i = 0; $size >= 1024 && $i < 6; $i++) {
for ($i = 0; $size >= 1024 && $i < 5; $i++) {
$size /= 1024;
}
return round($size, $precision) . $delimiter . $units[$i];