runc events hang for zero duration
Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
parent
d6189a05cf
commit
fa1c2e8337
|
@ -112,6 +112,10 @@ information is displayed once every 5 seconds.`,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
duration := context.Duration("interval")
|
||||||
|
if duration <= 0 {
|
||||||
|
return fmt.Errorf("duration interval must be greater than 0")
|
||||||
|
}
|
||||||
status, err := container.Status()
|
status, err := container.Status()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue