From 3edcc36a746b417cfcec81e98e7763f43b257259 Mon Sep 17 00:00:00 2001 From: duffyduck Date: Sat, 31 Oct 2026 15:53:55 +0100 Subject: [PATCH] =?UTF-8?q?fix(diagnostic):=20Download-Fenster=20=E2=80=94?= =?UTF-8?q?=20Hinweis=20statt=20gelbem=20=E2=84=B9,=20Zahlen=20mit=20Komma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Das Info-Zeichen ℹ erschien je nach Schrift als nacktes "i" und gelb wie eine Warnung. Jetzt grau mit "Hinweis:". Prozent, GB und MB/s mit Komma wie im Rest der Seite. Co-Authored-By: Claude Opus 5.5 --- diagnostic/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diagnostic/index.html b/diagnostic/index.html index 9d82718..e1a6401 100644 --- a/diagnostic/index.html +++ b/diagnostic/index.html @@ -9465,7 +9465,7 @@ function _fmtBytes(b) { if (!b && b !== 0) return '?'; - if (b >= 1e9) return (b / 1e9).toFixed(2) + ' GB'; + if (b >= 1e9) return (b / 1e9).toFixed(2).replace('.', ',') + ' GB'; if (b >= 1e6) return (b / 1e6).toFixed(0) + ' MB'; return Math.round(b / 1e3) + ' KB'; } @@ -9514,9 +9514,9 @@ } else if (j.phase === 'download') { pct = j.percent != null ? j.percent : 0; line = j.percent != null - ? `${pct.toFixed(1)} % · ${_fmtBytes(j.bytes)} / ${_fmtBytes(j.total)}` + ? `${pct.toFixed(1).replace('.', ',')} % · ${_fmtBytes(j.bytes)} / ${_fmtBytes(j.total)}` : `${_fmtBytes(j.bytes)} heruntergeladen (Größe unbekannt)`; - sub = (j.speedBps ? (j.speedBps / 1e6).toFixed(1) + ' MB/s' : '') + (j.etaSeconds != null ? ' · noch ' + _fmtEta(j.etaSeconds) : ''); + sub = (j.speedBps ? (j.speedBps / 1e6).toFixed(1).replace('.', ',') + ' MB/s' : '') + (j.etaSeconds != null ? ' · noch ' + _fmtEta(j.etaSeconds) : ''); // Netzwerkkarte der Box: unter 1 Gbit/s ist sie oft die Bremse (Kabel, Port, Green-Mode) for (const l of (j.links || [])) { const max = l.mbit / 8 * 0.92; @@ -9551,7 +9551,7 @@ ${bar}
${line}
${sub ? `
${sub}
` : ''} - ${j.note && j.phase !== 'error' ? `
ℹ ${escapeHtml(j.note)}
` : ''} + ${j.note && j.phase !== 'error' ? `
Hinweis: ${escapeHtml(j.note)}
` : ''} `; }).join(''); }