From: Jérôme Benoit Date: Mon, 19 Oct 2020 11:03:12 +0000 (+0200) Subject: Fixlet to configuration tunable value check. X-Git-Tag: v1.0.1-0~278 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c6b894001d6ab38e19a8d62dbda1041b0aab5d7d;p=e-mobility-charging-stations-simulator.git Fixlet to configuration tunable value check. Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Statistics.js b/src/utils/Statistics.js index 3ec5ef92..5289a574 100644 --- a/src/utils/Statistics.js +++ b/src/utils/Statistics.js @@ -70,7 +70,7 @@ class Statistics { } _displayInterval() { - if (Configuration.getStatisticsDisplayInterval() !== 0) { + if (Configuration.getStatisticsDisplayInterval() > 0) { setInterval(() => { this._display(); }, Configuration.getStatisticsDisplayInterval() * 1000);