Merge pull request #872 from rajasec/eventduration

runc events hang for zero duration
This commit is contained in:
Mrunal Patel 2016-06-03 12:02:26 -07:00
commit 39aeb98025
1 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,10 @@ information is displayed once every 5 seconds.`,
if err != nil {
return err
}
duration := context.Duration("interval")
if duration <= 0 {
return fmt.Errorf("duration interval must be greater than 0")
}
status, err := container.Status()
if err != nil {
return err