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}