Fix inconsistent speed formatting in download updates
- 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:
@@ -193,7 +193,7 @@ export function updateDownloadCard(card, download) {
|
||||
// Update speed
|
||||
const speedEl = card.querySelector('.detail-item[data-label="Speed"] .detail-value');
|
||||
if (speedEl && download.speed !== undefined) {
|
||||
speedEl.textContent = download.speed;
|
||||
speedEl.textContent = formatSpeed(download.speed);
|
||||
}
|
||||
|
||||
// Update ETA
|
||||
|
||||
Reference in New Issue
Block a user