mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-31 00:15:55 -04:00
simplification
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user