prefer larger codes for MGT
[roojs1] / roojs-debug.js
index 3ec16bb..b106290 100644 (file)
@@ -14000,12 +14000,12 @@ Roo.util.Format = function(){
          */
         size : function(value, decimals)
         {
-            var sizes = ['b', 'k', 'M', 'G', 'T'];
+            var sizes = ['b', 'k', 'm', 'g', 't'];
             if (value == 0) {
                 return 0;
             }
             var i = parseInt(Math.floor(Math.log(value) / Math.log(1024)));
-            return Roo.util.Format.number(value/ Math.pow(1024, i) ,decimals) + ' ' + sizes[i];
+            return Roo.util.Format.number(value/ Math.pow(1024, i) ,decimals)   + sizes[i];
         }