From b7c8f3c1d43f8961d3418d024d08c5d675de72a8 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 31 May 2023 13:08:05 +0200 Subject: [PATCH] fixed monitoring update delay for indicators? --- .../service/session/ClientConnectionTable.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java index 11eb03c7..c33793d3 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java @@ -510,12 +510,12 @@ public final class ClientConnectionTable implements FullPageMonitoringGUIUpdate private void update(final TableItem tableItem, final boolean force) { updateDuplicateColor(tableItem); - //if (force || this.dataChanged) { - updateData(tableItem); - //} - //if (force || this.indicatorValueChanged) { - updateIndicatorValues(tableItem); - //} + if (force || this.dataChanged) { + updateData(tableItem); + } + if (force || this.indicatorValueChanged) { + updateIndicatorValues(tableItem); + } this.dataChanged = false; this.indicatorValueChanged = false; } @@ -724,10 +724,12 @@ public final class ClientConnectionTable implements FullPageMonitoringGUIUpdate this.indicatorWeights[i] = -1; } } + + this.monitoringData = monitoringData; + if (this.indicatorValueChanged) { updateIndicatorWeight(); } - this.monitoringData = monitoringData; return this.staticData == null || this.staticData == ClientStaticData.NULL_DATA