|
@@ -734,7 +734,7 @@ SC.loadPackage({ 'FileManagerWindow': {
|
|
function bytesToSize(bytes) {
|
|
function bytesToSize(bytes) {
|
|
if(bytes == 0) return '0 Byte';
|
|
if(bytes == 0) return '0 Byte';
|
|
var k = 1000;
|
|
var k = 1000;
|
|
- var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
|
|
|
|
|
+ var sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
|
var i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
var i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
return (bytes / Math.pow(k, i)).toPrecision(3) + ' ' + sizes[i];
|
|
return (bytes / Math.pow(k, i)).toPrecision(3) + ' ' + sizes[i];
|
|
}
|
|
}
|