From 8c94f8e7214d9ee0a131584e672ae83277303f2b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 19 Jul 2011 21:10:04 +0200 Subject: use correct encoding header parsing --- module/web/media/default/js/funktions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/web/media/default/js') 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() { -- cgit v1.2.3