mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user