summaryrefslogtreecommitdiffstats
path: root/module/web/media
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-19 21:10:04 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-19 21:10:04 +0200
commit8c94f8e7214d9ee0a131584e672ae83277303f2b (patch)
treeb43da702fe8888883d18eaf622e9a170d4e4410b /module/web/media
parentfix in unrar plugin (diff)
downloadpyload-8c94f8e7214d9ee0a131584e672ae83277303f2b.tar.xz
use correct encoding header parsing
Diffstat (limited to 'module/web/media')
-rw-r--r--module/web/media/default/js/funktions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/media/default/js/funktions.js b/module/web/media/default/js/funktions.js
index 529b7056b..fe9ed699b 100644
--- a/module/web/media/default/js/funktions.js
+++ b/module/web/media/default/js/funktions.js
@@ -4,7 +4,7 @@ function humanFileSize(size) {
var loga = Math.log(size) / Math.log(1024);
var i = Math.floor(loga);
var a = Math.pow(1024, i);
- return (size == 0) ? "0 B" : (Math.round(size / a, 2) + " " + filesizename[i]);
+ return (size == 0) ? "0 B" : (Math.round(size * 100 / a) / 100 + " " + filesizename[i]);
}
function parseUri() {