containerd / go-runc

runc bindings for Go
Apache License 2.0
161 stars 71 forks source link

Support for msec time interval in Events #53

Open ChethanSuresh opened 4 years ago

ChethanSuresh commented 4 years ago

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

https://github.com/containerd/go-runc/blob/9007c2405372fe28918845901a3276c0915689a1/runc.go#L352

Is there any specific reason?