projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidy yp formating
[roojs1]
/
Roo
/
util
/
Format.js
diff --git
a/Roo/util/Format.js
b/Roo/util/Format.js
index
dd9c0dc
..
249fd70
100644
(file)
--- a/
Roo/util/Format.js
+++ b/
Roo/util/Format.js
@@
-255,12
+255,12
@@
Roo.util.Format = function(){
*/
size : function(value, decimals)
{
*/
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)));
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];
}
}