Make the logic more obvious on the slow dashboard mode.

This commit is contained in:
Herbert Wolverson 2024-07-19 14:14:10 -05:00
parent ec1476b83c
commit 716b0d41f1

View File

@ -144,7 +144,11 @@ export class Dashboard {
this.tickCounter++;
this.tickCounter %= this.cadence;
for (let i = 0; i < this.dashlets.length; i++) {
if (this.tickCounter === 0 || !this.dashlets[i].canBeSlowedDown()) {
if (this.dashlets[i].canBeSlowedDown()) {
if (this.tickCounter === 0) {
this.dashlets[i].onMessage(msg);
}
} else {
this.dashlets[i].onMessage(msg);
}
}