Core/Metric: Sync default Metric.Interval value

Sync default Metric.Interval value in C++ with the value in worldserver.conf
This commit is contained in:
jackpoz
2022-04-18 11:53:38 +02:00
parent 230f40f359
commit c83d00a645

View File

@@ -55,7 +55,7 @@ void Metric::LoadFromConfigs()
{
bool previousValue = _enabled;
_enabled = sConfigMgr->GetBoolDefault("Metric.Enable", false);
_updateInterval = sConfigMgr->GetIntDefault("Metric.Interval", 10);
_updateInterval = sConfigMgr->GetIntDefault("Metric.Interval", 1);
if (_updateInterval < 1)
{
TC_LOG_ERROR("metric", "'Metric.Interval' config set to %d, overriding to 1.", _updateInterval);