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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp
index b17103e43..c05cb5269 100644
--- a/src/zenstore/gc.cpp
+++ b/src/zenstore/gc.cpp
@@ -2300,7 +2300,7 @@ GcScheduler::SchedulerThread()
uint64_t MaxLoad = 0;
{
- const GcClock::Tick EpochTickCount = GcClock::Now().time_since_epoch().count();
+ const GcClock::Tick EpochTickCount = Now.time_since_epoch().count();
std::unique_lock Lock(m_GcMutex);
if (AreDiskWritesAllowed())
{
@@ -2310,8 +2310,8 @@ GcScheduler::SchedulerThread()
const GcClock::TimePoint LoadGraphStartTime = Now - LoadGraphTime;
const GcClock::Tick Start = LoadGraphStartTime.time_since_epoch().count();
const GcClock::Tick End = Now.time_since_epoch().count();
- DiskDeltas = m_DiskUsageWindow.GetDiskDeltas(Start,
- End,
+ DiskDeltas = m_DiskUsageWindow.GetDiskDeltas(Start + 1,
+ End + 1,
Max(1, (End - Start + PressureGraphLength - 1) / PressureGraphLength),
MaxLoad);
}