Skip to content

Commit

Permalink
reduce network update logging frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
features-not-bugs committed Nov 19, 2021
1 parent 69d2f74 commit 96f412b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RustServerMetrics/MetricsLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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");
}
Expand Down

0 comments on commit 96f412b

Please sign in to comment.