mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 21:51:51 +00:00
fix: eta
This commit is contained in:
1 parent
10265c9836
commit
5c5856b5d2
1 file changed
+1
-1
@@ -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 `<li>
|
||||
|
||||
Reference in new issue
Block a user