diff options
| author | Dan Engelbrecht <[email protected]> | 2024-04-20 14:22:07 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-04-20 14:22:07 +0200 |
| commit | a45f0848b03a51ef2d68e4d2b862192442f86e4d (patch) | |
| tree | 0340721c54f24174f681a0ae7a194623eb40c59e | |
| parent | import oplog improvements (#54) (diff) | |
| download | zen-a45f0848b03a51ef2d68e4d2b862192442f86e4d.tar.xz zen-a45f0848b03a51ef2d68e4d2b862192442f86e4d.zip | |
fix LogRemoteStoreStatsDetails (#53)
| -rw-r--r-- | src/zenserver/projectstore/remoteprojectstore.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zenserver/projectstore/remoteprojectstore.cpp b/src/zenserver/projectstore/remoteprojectstore.cpp index d8402366d..e9c6964c5 100644 --- a/src/zenserver/projectstore/remoteprojectstore.cpp +++ b/src/zenserver/projectstore/remoteprojectstore.cpp @@ -126,9 +126,10 @@ GetStats(const RemoteProjectStore::Stats& Stats, uint64_t ElapsedWallTimeMS) void LogRemoteStoreStatsDetails(const RemoteProjectStore::Stats& Stats) { - ZEN_INFO("Oplog request count: {}. Average request size: {}. Peak request speed: {}", + ZEN_INFO("Oplog request count: {}. Average request size: {}. Average request time: {}, Peak request speed: {}", Stats.m_RequestCount, - NiceLatencyNs(Stats.m_RequestCount > 0 ? (Stats.m_ReceivedBytes + Stats.m_SentBytes) / Stats.m_RequestCount : 0u), + NiceBytes(Stats.m_RequestCount > 0 ? (Stats.m_ReceivedBytes + Stats.m_SentBytes) / Stats.m_RequestCount : 0u), + NiceLatencyNs(Stats.m_RequestCount > 0 ? (Stats.m_RequestTimeNS / Stats.m_RequestCount) : 0u), NiceBytes(Stats.m_PeakBytesPerSec)); ZEN_INFO("Oplog sent request avg: {} ({}/s). Peak: {}", NiceBytes(Stats.m_RequestCount > 0u ? static_cast<uint64_t>((Stats.m_SentBytes) / Stats.m_RequestCount) : 0u), |