fix kubelet stats staticcheck error

This commit is contained in:
tangcong 2020-04-19 16:48:41 +08:00
parent 8b0a7dea1d
commit 2b984b3e3a

View File

@ -700,6 +700,7 @@ func (p *criStatsProvider) cleanupOutdatedCaches() {
for k, v := range p.cpuUsageCache {
if v == nil {
delete(p.cpuUsageCache, k)
continue
}
if time.Since(time.Unix(0, v.stats.Timestamp)) > defaultCachePeriod {