diff options
| author | Dan Engelbrecht <[email protected]> | 2023-10-23 15:23:25 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-23 15:23:25 +0200 |
| commit | 54d0430a4507a7c1769a1587b7fc8049c7a3e575 (patch) | |
| tree | 071a1804814688bc49e1ac2ad2aaddd2d1490b45 /src/zenserver/admin/admin.cpp | |
| parent | Remove any unreferenced blocks in block store on open (#492) (diff) | |
| download | zen-54d0430a4507a7c1769a1587b7fc8049c7a3e575.tar.xz zen-54d0430a4507a7c1769a1587b7fc8049c7a3e575.zip | |
fix m_LastFullGcDuration, m_LastFullGCDiff, m_LastFullGcDuration and m_LastLightweightGcDuration stats (#494)
Diffstat (limited to 'src/zenserver/admin/admin.cpp')
| -rw-r--r-- | src/zenserver/admin/admin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenserver/admin/admin.cpp b/src/zenserver/admin/admin.cpp index 06a079a52..7c7c729c7 100644 --- a/src/zenserver/admin/admin.cpp +++ b/src/zenserver/admin/admin.cpp @@ -234,7 +234,7 @@ HttpAdminService::HttpAdminService(GcScheduler& Scheduler, { Response << "SpaceToNext" << NiceBytes(State.RemainingSpaceUntilFullGC); } - Response << "LastDuration" << SecondsToString(State.LastFullGcDuration); + Response << "LastDuration" << NiceTimeSpanMs(State.LastFullGcDuration.count()); Response << "LastDiskFreed" << NiceBytes(State.LastFullGCDiff.DiskSize); Response << "LastMemoryFreed" << NiceBytes(State.LastFullGCDiff.MemorySize); } @@ -243,7 +243,7 @@ HttpAdminService::HttpAdminService(GcScheduler& Scheduler, { Response << "LastTime" << fmt::format("{}", State.LastLightweightGcTime); Response << "TimeToNext" << SecondsToString(State.RemainingTimeUntilLightweightGc); - Response << "LastDuration" << SecondsToString(State.LastLightweightGcDuration); + Response << "LastDuration" << NiceTimeSpanMs(State.LastLightweightGcDuration.count()); Response << "LastDiskFreed" << NiceBytes(State.LastLightweightGCDiff.DiskSize); Response << "LastMemoryFreed" << NiceBytes(State.LastLightweightGCDiff.MemorySize); } |