From 5c5856b5d2ed9c73f23113db6db2abdbf4945502 Mon Sep 17 00:00:00 2001 From: wipedlifepotato <60944239+wipedlifepotato@users.noreply.github.com> Date: Fri, 28 Aug 2026 02:27:49 +0300 Subject: [PATCH] fix: eta --- contrib/webconsole/torrent_client.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 `