add ConfigCentralServer::getMetricsDataURL() and move the stats collection functionality to the function that sends to the login server; this may or may not be optimal depending on how often it is updated

This commit is contained in:
DarthArgus
2016-05-05 16:04:41 +00:00
parent ade6e1f1d0
commit 16c9ba95d0
3 changed files with 19 additions and 8 deletions
@@ -71,6 +71,7 @@ public:
bool requestDbSaveOnPlanetServerCrash;
int maxTimeToWaitForPlanetServerStartSeconds;
const char * metricsDataURL;
};
static const unsigned short getChatServicePort ();
@@ -140,7 +141,7 @@ public:
static bool getRequestDbSaveOnPlanetServerCrash();
static int getMaxTimeToWaitForPlanetServerStartSeconds();
static const char * getMetricsDataURL();
private:
static Data * data;
};
@@ -510,6 +511,11 @@ inline int ConfigCentralServer::getMaxTimeToWaitForPlanetServerStartSeconds()
return data->maxTimeToWaitForPlanetServerStartSeconds;
}
inline const char * ConfigCentralServer::getMetricsDataURL()
{
return data->metricsDataURL;
}
// ======================================================================
#endif // _ConfigCentralServer_H