mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 03:04:30 +00:00
fix: eta
This commit is contained in:
@@ -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