From 30c8a32f0e2cd8da250b0f6125c3d9317c2dd75f Mon Sep 17 00:00:00 2001 From: Zener Date: Tue, 22 Dec 2020 11:46:48 +0100 Subject: [PATCH] fixed file sizes --- webui-src/app/files/files_util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui-src/app/files/files_util.js b/webui-src/app/files/files_util.js index 2e0f693..3305f70 100644 --- a/webui-src/app/files/files_util.js +++ b/webui-src/app/files/files_util.js @@ -119,11 +119,11 @@ const File = () => { v.attrs.info.downloadStatus === FT_STATE_PAUSED ? 'resume' : 'pause'), m(ProgressBar, { - rate: v.attrs.info.transfered / v.attrs.info.size * + rate: v.attrs.info.transfered.xint64 / v.attrs.info.size.xint64 * 100, }), m('span', m('i.fas.fa-file'), makeFriendlyUnit( - v.attrs.info.size)), + v.attrs.info.size.xint64)), m('span', m('i.fas.fa-arrow-circle-down'), makeFriendlyUnit(v.attrs.info.tfRate * 1024) + '/s'), ]),