From d78d8b5a62a9c7aec419789d975e1f37783da1f7 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Fri, 6 May 2016 02:55:46 +0000 Subject: [PATCH] simplification --- .../application/CentralServer/src/shared/CentralServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/application/CentralServer/src/shared/CentralServer.cpp b/engine/server/application/CentralServer/src/shared/CentralServer.cpp index a6b51427..f7087006 100755 --- a/engine/server/application/CentralServer/src/shared/CentralServer.cpp +++ b/engine/server/application/CentralServer/src/shared/CentralServer.cpp @@ -2786,7 +2786,7 @@ void CentralServer::update() int webUpdateIntervalSeconds = ConfigCentralServer::getWebUpdateIntervalSeconds(); // assuming that every 5th frame is ~1 second, we can multiply and then mod - if ( webUpdateIntervalSeconds > 0 && (loopCount%(webUpdateIntervalSeconds*5) == 0)) + if ( webUpdateIntervalSeconds && (loopCount%(webUpdateIntervalSeconds*5) == 0)) { sendMetricsToWebAPI(); }