containerd/go-runc

Support for msec time interval in Events

ChethanSuresh opened this issue · 0 comments

runc events supports time intervals for msec. Example

# runc events --interval 0.5s <id>

The below line converts millisecond time.Duration API call to int, making the interval 0. Thus nil Events channel

go-runc/runc.go

Line 352 in 9007c24

cmd := r.command(context, "events", fmt.Sprintf("--interval=%ds", int(interval.Seconds())), id)

Is there any specific reason?