diff --git a/contrib/webconsole/torrent_client.html b/contrib/webconsole/torrent_client.html index 6a342212..1ecbb159 100644 --- a/contrib/webconsole/torrent_client.html +++ b/contrib/webconsole/torrent_client.html @@ -47,7 +47,7 @@ const speedUp = window.tjs.formatBytes ? window.tjs.formatBytes(el.rateUpload) : `${el.rateUpload} B/s`; const status = window.tjs.getStatusString ? window.tjs.getStatusString(el.status) : el.status; const totalSize = el.totalSize; // bytes - let ETA = el.rateDownload ? (totalSize-(totalSize*el.percentDone)/el.rateDownload)/60.0 + "min" : '-'; // minutes + const ETA = el.rateDownload ? (((totalSize * (1 - el.percentDone)) / el.rateDownload) / 60).toFixed(1) + " min" : "-"; const name = el.name || '|unknown name, maybe a bad torrent|'; return `