mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-02 03:16:11 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user