mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
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:
@@ -71,7 +71,7 @@ void Metric::LoadFromConfigs()
|
|||||||
{
|
{
|
||||||
bool previousValue = _enabled;
|
bool previousValue = _enabled;
|
||||||
_enabled = sConfigMgr->GetOption<bool>("Metric.Enable", false);
|
_enabled = sConfigMgr->GetOption<bool>("Metric.Enable", false);
|
||||||
_updateInterval = sConfigMgr->GetOption<int32>("Metric.Interval", 10);
|
_updateInterval = sConfigMgr->GetOption<int32>("Metric.Interval", 1);
|
||||||
|
|
||||||
if (_updateInterval < 1)
|
if (_updateInterval < 1)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -780,11 +780,13 @@ Metric.Enable = 0
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Metric.Interval
|
# Metric.Interval
|
||||||
# Description: Interval between every batch of data sent in seconds
|
# Description: Interval between every batch of data sent in seconds.
|
||||||
# Default: 10 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
|
# Metric.ConnectionInfo
|
||||||
|
|||||||
Reference in New Issue
Block a user