Using IEC standard prefixes.
authorjervfors <jervfors@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 15 Jun 2006 16:35:26 +0000 (16:35 +0000)
committerjervfors <jervfors@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 15 Jun 2006 16:35:26 +0000 (16:35 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11209 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index b95ff5923e2671f73b407213cbfd1c768d291f79..626d022bc49a0f94ade222aff70c126c9faa65a3 100644 (file)
@@ -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);
 }
 
-?>
+?>
\ No newline at end of file