aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/gc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/gc.cpp')
-rw-r--r--src/zenstore/gc.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp
index 245f76c92..79aea2752 100644
--- a/src/zenstore/gc.cpp
+++ b/src/zenstore/gc.cpp
@@ -838,8 +838,11 @@ GcScheduler::SchedulerThread()
{
const GcClock::Tick EpochTickCount = GcClock::Now().time_since_epoch().count();
std::unique_lock Lock(m_GcMutex);
+ if (AreDiskWritesAllowed())
+ {
+ m_DiskUsageLog.Append({.SampleTime = EpochTickCount, .DiskUsage = TotalSize.DiskSize});
+ }
m_DiskUsageWindow.Append({.SampleTime = EpochTickCount, .DiskUsage = TotalSize.DiskSize});
- m_DiskUsageLog.Append({.SampleTime = EpochTickCount, .DiskUsage = TotalSize.DiskSize});
const GcClock::TimePoint LoadGraphStartTime = Now - LoadGraphTime;
const GcClock::Tick Start = LoadGraphStartTime.time_since_epoch().count();
const GcClock::Tick End = Now.time_since_epoch().count();