Fix inconsistent speed formatting in download updates
Build and Push Docker Image / build (push) Successful in 55s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m7s
CI / Security audit (push) Successful in 1m32s
CI / Tests & coverage (push) Failing after 1m51s

- Use formatSpeed() when updating existing download card speed
- Ensures consistent unit display (B/s, KB/s, MB/s, GB/s) across all updates
- Previously used raw speed value causing inconsistent display
This commit is contained in:
2026-05-21 01:48:00 +01:00
parent a349c8e2cf
commit f6ad7c85bf
+1 -1
View File
@@ -193,7 +193,7 @@ export function updateDownloadCard(card, download) {
// Update speed // Update speed
const speedEl = card.querySelector('.detail-item[data-label="Speed"] .detail-value'); const speedEl = card.querySelector('.detail-item[data-label="Speed"] .detail-value');
if (speedEl && download.speed !== undefined) { if (speedEl && download.speed !== undefined) {
speedEl.textContent = download.speed; speedEl.textContent = formatSpeed(download.speed);
} }
// Update ETA // Update ETA