fix func comment in helpers.go

This commit is contained in:
carlory 2017-05-17 15:44:21 +08:00
parent 810b409626
commit 7fffa52bbd

View File

@ -932,7 +932,7 @@ func isSoftEvictionThresholds(thresholds []evictionapi.Threshold, starvedResourc
return true
}
// isSoftEviction returns true if the thresholds met for the starved resource are only soft thresholds
// isHardEvictionThreshold returns true if eviction should immediately occur
func isHardEvictionThreshold(threshold evictionapi.Threshold) bool {
return threshold.GracePeriod == time.Duration(0)
}