Merge pull request #844 from jhjeong-kr/master

issue: high cpu usage
This commit is contained in:
Victor Marmol 2015-08-17 17:51:49 -07:00
commit f6d53e4e52

View File

@ -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
}