mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-22 08:16:25 -06:00
Make the logic more obvious on the slow dashboard mode.
This commit is contained in:
parent
ec1476b83c
commit
716b0d41f1
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user