Commit 67747ca0 authored by zhouhaibing089's avatar zhouhaibing089 Committed by haibzhou

allow equality to avoid flaky on clock

parent 49bf9d39
......@@ -267,7 +267,7 @@ func (im *realImageManager) freeSpace(bytesToFree int64, freeTime time.Time) (in
spaceFreed := int64(0)
for _, image := range images {
// Images that are currently in used were given a newer lastUsed.
if image.lastUsed.After(freeTime) {
if image.lastUsed.Equal(freeTime) || image.lastUsed.After(freeTime) {
break
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment