summaryrefslogtreecommitdiffstats
path: root/module/web/media
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-26 21:11:27 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-26 21:11:27 +0200
commit3cc8e9491004868e6302339562c8266285236f54 (patch)
tree0b1ebef5c586586a63883ca6bf681105e433ff7f /module/web/media
parentprocessing some plugins in collector (diff)
downloadpyload-3cc8e9491004868e6302339562c8266285236f54.tar.xz
display correct file size when starting
Diffstat (limited to 'module/web/media')
-rw-r--r--module/web/media/default/js/funktions.js4
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) {