Core/Metric: Sync default Metric.Interval value

Sync default Metric.Interval value in C++ with the value in worldserver.conf

(cherry picked from commit c83d00a645)
This commit is contained in:
jackpoz
2022-04-18 11:53:38 +02:00
committed by Shauren
parent daafde7518
commit ce4916ec79

View File

@@ -54,7 +54,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);