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/zenstore/include | |
| 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/zenstore/include')
| -rw-r--r-- | src/zenstore/include/zenstore/gc.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/zenstore/include/zenstore/gc.h b/src/zenstore/include/zenstore/gc.h index ffdc8f066..42605804e 100644 --- a/src/zenstore/include/zenstore/gc.h +++ b/src/zenstore/include/zenstore/gc.h @@ -204,10 +204,10 @@ struct GcSchedulerState std::chrono::seconds RemainingTimeUntilFullGc; uint64_t RemainingSpaceUntilFullGC = 0; - std::chrono::seconds LastFullGcDuration{}; - GcStorageSize LastFullGCDiff; - std::chrono::seconds LastLightweightGcDuration{}; - GcStorageSize LastLightweightGCDiff; + std::chrono::milliseconds LastFullGcDuration{}; + GcStorageSize LastFullGCDiff; + std::chrono::milliseconds LastLightweightGcDuration{}; + GcStorageSize LastLightweightGCDiff; }; class DiskUsageWindow @@ -283,10 +283,10 @@ private: GcClock::TimePoint m_LastLightweightGcTime{}; GcClock::TimePoint m_LastGcExpireTime{}; - std::chrono::seconds m_LastFullGcDuration{}; - GcStorageSize m_LastFullGCDiff; - std::chrono::seconds m_LastLightweightGcDuration{}; - GcStorageSize m_LastLightweightGCDiff; + std::chrono::milliseconds m_LastFullGcDuration{}; + GcStorageSize m_LastFullGCDiff; + std::chrono::milliseconds m_LastLightweightGcDuration{}; + GcStorageSize m_LastLightweightGCDiff; std::atomic_uint32_t m_Status{}; std::thread m_GcThread; |