From 96f412b08a45e2576eb7d8e40b114eeea30cc526 Mon Sep 17 00:00:00 2001 From: Hayden Date: Sat, 20 Nov 2021 02:10:31 +0800 Subject: [PATCH] reduce network update logging frequency --- src/RustServerMetrics/MetricsLogger.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RustServerMetrics/MetricsLogger.cs b/src/RustServerMetrics/MetricsLogger.cs index 8bc909e..8447bfb 100644 --- a/src/RustServerMetrics/MetricsLogger.cs +++ b/src/RustServerMetrics/MetricsLogger.cs @@ -69,7 +69,7 @@ override protected void Awake() return; } - InvokeRepeating(LogNetworkUpdates, UnityEngine.Random.Range(0.05f, 0.15f), 0.1f); + InvokeRepeating(LogNetworkUpdates, UnityEngine.Random.Range(0.25f, 0.75f), 0.5f); Ready = true; } } @@ -143,7 +143,7 @@ void ReloadCfgCommand(ConsoleSystem.Arg arg) { Ready = true; foreach (var player in BasePlayer.activePlayerList) OnPlayerInit(player); - InvokeRepeating(LogNetworkUpdates, UnityEngine.Random.Range(0.05f, 0.15f), 0.1f); + InvokeRepeating(LogNetworkUpdates, UnityEngine.Random.Range(0.25f, 0.75f), 0.5f); } arg.ReplyWith("[ServerMetrics]: Configuration reloaded"); }