From 8ace3647fabeba9b65368ca50c6c4fb5d9a2078a Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Fri, 21 Oct 2016 22:18:47 +1100 Subject: [PATCH] oci: cast timestamp to int64 Found while trying to package ocid for openSUSE. Signed-off-by: Aleksa Sarai --- oci/oci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oci/oci.go b/oci/oci.go index fea02b85..1b125f17 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(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 {