oci: cast timestamp to int64

Found while trying to package ocid for openSUSE.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
Aleksa Sarai 2016-10-21 22:18:47 +11:00
parent 5290ca593a
commit 8ace3647fa
No known key found for this signature in database
GPG key ID: 9E18AA267DDB8DB4

View file

@ -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(st.Ctim.Sec, st.Ctim.Nsec)
c.state.Finished = time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
statusCodeStr, err := ioutil.ReadFile(exitFilePath)
if err != nil {