fix(Metric/Misc): Change default updatetime to 1s (#17627)

* Update default metric interval

* codestyle

* ready for merge

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
AG
2023-11-12 16:37:16 +01:00
committed by GitHub
parent a0ac1dc0c1
commit 61fd3eebf9
2 changed files with 6 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ void Metric::LoadFromConfigs()
{
bool previousValue = _enabled;
_enabled = sConfigMgr->GetOption<bool>("Metric.Enable", false);
_updateInterval = sConfigMgr->GetOption<int32>("Metric.Interval", 10);
_updateInterval = sConfigMgr->GetOption<int32>("Metric.Interval", 1);
if (_updateInterval < 1)
{