diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-26 21:11:27 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-26 21:11:27 +0200 |
commit | 3cc8e9491004868e6302339562c8266285236f54 (patch) | |
tree | 0b1ebef5c586586a63883ca6bf681105e433ff7f /module/web/media/default/js | |
parent | processing some plugins in collector (diff) | |
download | pyload-3cc8e9491004868e6302339562c8266285236f54.tar.xz |
display correct file size when starting
Diffstat (limited to 'module/web/media/default/js')
-rw-r--r-- | module/web/media/default/js/funktions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/web/media/default/js/funktions.js b/module/web/media/default/js/funktions.js index 882d569d9..c0f38b0bb 100644 --- a/module/web/media/default/js/funktions.js +++ b/module/web/media/default/js/funktions.js @@ -1,11 +1,11 @@ // JavaScript Document
function HumanFileSize(size)
{
- var filesizename = new Array("KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB");
+ var filesizename = new Array("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB");
var loga = Math.log(size)/Math.log(1024);
var i = Math.floor(loga);
var a = Math.pow(1024, i);
- return (size == 0) ? "0 KB" : (Math.round( size / a , 2) + " " + filesizename[i]);
+ return (size == 0) ? "0 B" : (Math.round( size / a , 2) + " " + filesizename[i]);
}
Array.prototype.remove = function(from, to) {
|