Browse Source

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

Karson 1 year ago
parent
commit
2fe68b4c27
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common.php

+ 1 - 1
application/common.php

@@ -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];