Skip to content

Commit 5fdf152

Browse files
committed
overflows field now acts as a bool
1 parent b150e6f commit 5fdf152

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/graphics/layers/PerformanceOverlay.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,9 @@ export class PerformanceOverlay extends LitElement implements Layer {
542542
Math.round(ringBufferUtilization * 100) / 100;
543543
}
544544

545-
if (ringBufferOverflows !== undefined) {
546-
// Accumulate overflows (overflows is a flag, so add 1 if set)
547-
this.ringBufferOverflows += ringBufferOverflows;
545+
if (ringBufferOverflows !== undefined && ringBufferOverflows !== 0) {
546+
// Remember that an overflow has occurred at least once this run.
547+
this.ringBufferOverflows = 1;
548548
}
549549

550550
if (ringDrainTime !== undefined) {

0 commit comments

Comments
 (0)