From 716b0d41f14dfd09203e07338e966040622362b2 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Fri, 19 Jul 2024 14:14:10 -0500 Subject: [PATCH] Make the logic more obvious on the slow dashboard mode. --- .../src/node_manager/js_build/src/dashlets/dashboard.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashboard.js b/src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashboard.js index 14eb6493..3511af40 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashboard.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashboard.js @@ -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); } }