oci: fix type mismatch on some platform/arch

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-07-17 15:31:12 +02:00
parent db310e9641
commit 47ea873253
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
3 changed files with 29 additions and 3 deletions

14
oci/finished.go Normal file
View file

@ -0,0 +1,14 @@
// +build !arm !386
package oci
import (
"os"
"syscall"
"time"
)
func getFinishedTime(fi os.FileInfo) time.Time {
st := fi.Sys().(*syscall.Stat_t)
return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
}