Commit d9a4e9b4 authored by Robert Bailey's avatar Robert Bailey

Merge pull request #25071 from zhouhaibing089/clock-fix

allow equality to avoid flaky on clock
parents bb08b27e 67747ca0
......@@ -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