v0.33.3_hotfix

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-15 13:50:14 +02:00
1 parent 78ad28ef4d
commit de090d20fa
7 files changed
+162 -11

No files matched your search

+2 -1
View File
@@ -439,7 +439,8 @@
const deltas = record ? sample.deltas : null;
const rate = deltas ? deltas[0] / sample.seconds : null;
const previous = serviceHistory.get(id) || [];
if (record) { previous.push(rate); window.rustProxyOverviewSamples.trim(previous); serviceHistory.set(id, previous); }
// An unavailable counter delta is not a 0/s measurement; do not plot it.
if (record && rate !== null) { previous.push(rate); window.rustProxyOverviewSamples.trim(previous); serviceHistory.set(id, previous); }
const peak = Math.max(1, ...previous.filter(x => x != null));
const points = previous.map((value, i) => `${300 * i / Math.max(1, previous.length - 1)},${55 - (value || 0) / peak * 50}`).join(" ");
panel.querySelector("polyline")?.setAttribute("points", points || "0,55 300,55");