mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 16:14:36 +00:00
overflows field now acts as a bool
This commit is contained in:
@@ -542,9 +542,9 @@ export class PerformanceOverlay extends LitElement implements Layer {
|
|||||||
Math.round(ringBufferUtilization * 100) / 100;
|
Math.round(ringBufferUtilization * 100) / 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ringBufferOverflows !== undefined) {
|
if (ringBufferOverflows !== undefined && ringBufferOverflows !== 0) {
|
||||||
// Accumulate overflows (overflows is a flag, so add 1 if set)
|
// Remember that an overflow has occurred at least once this run.
|
||||||
this.ringBufferOverflows += ringBufferOverflows;
|
this.ringBufferOverflows = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ringDrainTime !== undefined) {
|
if (ringDrainTime !== undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user