Skip to content

Commit

Permalink
Merge pull request google#844 from jhjeong-kr/master
Browse files Browse the repository at this point in the history
issue: high cpu usage
  • Loading branch information
vmarmol committed Aug 18, 2015
2 parents 9db0c2e + 9bb7a02 commit f6d53e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manager/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ func (c *containerData) housekeeping() {
// Schedule the next housekeeping. Sleep until that time.
if time.Now().Before(next) {
time.Sleep(next.Sub(time.Now()))
} else {
next = time.Now()
}
lastHousekeeping = next
}
Expand Down

0 comments on commit f6d53e4

Please sign in to comment.