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
|
cmd := r.command(context, "events", fmt.Sprintf("--interval=%ds", int(interval.Seconds())), id) |
Is there any specific reason?
runc eventssupports time intervals for msec. ExampleThe below line converts millisecond time.Duration API call to
int, making the interval 0. Thus nil Events channelgo-runc/runc.go
Line 352 in 9007c24
Is there any specific reason?