diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-19 21:10:04 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-19 21:10:04 +0200 |
commit | 8c94f8e7214d9ee0a131584e672ae83277303f2b (patch) | |
tree | b43da702fe8888883d18eaf622e9a170d4e4410b /module/web/media | |
parent | fix in unrar plugin (diff) | |
download | pyload-8c94f8e7214d9ee0a131584e672ae83277303f2b.tar.xz |
use correct encoding header parsing
Diffstat (limited to 'module/web/media')
-rw-r--r-- | module/web/media/default/js/funktions.js | 2 |
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() {
|