diff --git a/oci/oci.go b/oci/oci.go index 1b125f17..fea02b85 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -193,7 +193,7 @@ func (r *Runtime) UpdateStatus(c *Container) error { return fmt.Errorf("failed to find container exit file: %v", err) } st := fi.Sys().(*syscall.Stat_t) - c.state.Finished = time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec)) + c.state.Finished = time.Unix(st.Ctim.Sec, st.Ctim.Nsec) statusCodeStr, err := ioutil.ReadFile(exitFilePath) if err != nil {