chore(Scripts/Commands): QOL server debug (#19297)

* chore(Scripts/Commands): QOL server debug

* England

* might as well do updatetime while we are at it. Consistency right?

* Hey let's sneak this ENGLAND in
This commit is contained in:
Kitzunu
2024-07-06 01:18:38 +02:00
committed by GitHub
parent 0d668fb43e
commit fc8b67bbe4
4 changed files with 105 additions and 104 deletions

View File

@@ -165,10 +165,11 @@ void WorldUpdateTime::RecordUpdateTime(Milliseconds gameTimeMs, uint32 diff, uin
{
if (GetMSTimeDiff(_lastRecordTime, gameTimeMs) > _recordUpdateTimeInverval)
{
LOG_INFO("time.update", "Last {} diffs summary with {} players online:", GetDatasetSize(), sessionCount);
LOG_INFO("time.update", " - Mean: {};", GetAverageUpdateTime());
LOG_INFO("time.update", " - Median: {};", GetPercentile(50));
LOG_INFO("time.update", " - Percentiles (95, 99, max): {}, {}, {}.", GetPercentile(95), GetPercentile(99), GetPercentile(100));
LOG_INFO("time.update", "Update time diff: {} with {} players online", GetLastUpdateTime(), sessionCount);
LOG_INFO("time.update", "Last {} diffs summary:", GetDatasetSize());
LOG_INFO("time.update", "|- Mean: {}", GetAverageUpdateTime());
LOG_INFO("time.update", "|- Median: {}", GetPercentile(50));
LOG_INFO("time.update", "|- Percentiles (95, 99, max): {}, {}, {}", GetPercentile(95), GetPercentile(99), GetPercentile(100));
_lastRecordTime = gameTimeMs;
}
}