Browse Source

Using IEC standard prefixes.

Fredrik Jervfors 19 years ago
parent
commit
339f867fb5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      functions/strings.php

+ 3 - 3
functions/strings.php

@@ -706,11 +706,11 @@ function OneTimePadCreate ($length=100) {
  */
 function show_readable_size($bytes) {
     $bytes /= 1024;
-    $type = 'k';
+    $type = 'KiB';
 
     if ($bytes / 1024 > 1) {
         $bytes /= 1024;
-        $type = 'M';
+        $type = 'MiB';
     }
 
     if ($bytes < 10) {
@@ -1291,4 +1291,4 @@ function sq_trim_value ( &$value ) {
     $value = trim($value);
 }
 
-?>
+?>