move the web api updates into their own function, and make it a configurable via webUpdateIntervalSeconds, also fix the check using mod operator for shutdown as it fired every frame except frame 5, instead of every second

This commit is contained in:
DarthArgus
2016-05-06 02:53:37 +00:00
parent 5a082e5f1d
commit eb8e50c568
4 changed files with 42 additions and 12 deletions
@@ -128,6 +128,7 @@ void ConfigCentralServer::install(void)
KEY_BOOL (requestDbSaveOnPlanetServerCrash, true);
KEY_INT (maxTimeToWaitForPlanetServerStartSeconds, 5*60); // seconds
KEY_STRING (metricsDataURL, "");
KEY_INT (webUpdateIntervalSeconds, 0);
int index = 0;
char const * result = 0;