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)
{

View File

@@ -780,11 +780,13 @@ Metric.Enable = 0
#
# Metric.Interval
# Description: Interval between every batch of data sent in seconds
# Default: 10 seconds
# Description: Interval between every batch of data sent in seconds.
# Longer interval means larger batch of data. If the batch
# is too big, it might get rejected.
# Default: 1 second
#
Metric.Interval = 10
Metric.Interval = 1
#
# Metric.ConnectionInfo