From e753f9c25028fe427d4c9264bb4684574e4878c0 Mon Sep 17 00:00:00 2001 From: swg Date: Sat, 7 May 2016 00:00:36 +0100 Subject: [PATCH] roughly 1 sec update timer now --- .../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 5189e047..97b5a849 100755 --- a/engine/server/application/CentralServer/src/shared/CentralServer.cpp +++ b/engine/server/application/CentralServer/src/shared/CentralServer.cpp @@ -2788,7 +2788,7 @@ void CentralServer::update() int webUpdateIntervalSeconds = ConfigCentralServer::getWebUpdateIntervalSeconds(); // assuming that every 5th frame is ~1 second, we can multiply and then check - if ( webUpdateIntervalSeconds && (++apiLoopCount > (webUpdateIntervalSeconds*5)) ) + if ( webUpdateIntervalSeconds && (++apiLoopCount > (webUpdateIntervalSeconds*1000)) ) { apiLoopCount = 0;