]> source.dussan.org Git - nextcloud-server.git/commitdiff
properly use standard
authorMorris Jobke <hey@morrisjobke.de>
Tue, 19 Jan 2016 09:37:20 +0000 (10:37 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 19 Jan 2016 09:41:12 +0000 (10:41 +0100)
* JEDEC standard - https://en.wikipedia.org/wiki/JEDEC_memory_standards#Unit_prefixes_for_semiconductor_storage_capacity

lib/private/helper.php
tests/lib/helper.php

index 3590eaee6128f7641fd8db23fd0348e5c669b92b..c387cd40a24ae371365bf167b53410cc697a8c29 100644 (file)
@@ -112,7 +112,7 @@ class OC_Helper {
                }
                $bytes = round($bytes / 1024, 0);
                if ($bytes < 1024) {
-                       return "$bytes kB";
+                       return "$bytes KB";
                }
                $bytes = round($bytes / 1024, 1);
                if ($bytes < 1024) {
index c2620896157816ea299e3b42ebb0f9daeba77ba8..89a981e6e2339a35a06aa665492c7886cd7b2a00 100644 (file)
@@ -21,7 +21,7 @@ class Test_Helper extends \Test\TestCase {
        {
                return array(
                        array('0 B', 0),
-                       array('1 kB', 1024),
+                       array('1 KB', 1024),
                        array('9.5 MB', 10000000),
                        array('1.3 GB', 1395864371),
                        array('465.7 GB', 500000000000),
@@ -63,7 +63,7 @@ class Test_Helper extends \Test\TestCase {
        function providesComputerFileSize(){
                return [
                        [0.0, "0 B"],
-                       [1024.0, "1 kB"],
+                       [1024.0, "1 KB"],
                        [1395864371.0, '1.3 GB'],
                        [9961472.0, "9.5 MB"],
                        [500041567437.0, "465.7 GB"],