overflows field now acts as a bool

This commit is contained in:
scamiv
2025-11-26 22:02:12 +01:00
parent 7e2784eee2
commit 1e3d2e10f3
@@ -542,9 +542,9 @@ export class PerformanceOverlay extends LitElement implements Layer {
Math.round(ringBufferUtilization * 100) / 100;
}
if (ringBufferOverflows !== undefined) {
// Accumulate overflows (overflows is a flag, so add 1 if set)
this.ringBufferOverflows += ringBufferOverflows;
if (ringBufferOverflows !== undefined && ringBufferOverflows !== 0) {
// Remember that an overflow has occurred at least once this run.
this.ringBufferOverflows = 1;
}
if (ringDrainTime !== undefined) {