diff options
-rw-r--r-- | libpod/finished_32.go | 16 | ||||
-rw-r--r-- | libpod/finished_64.go (renamed from libpod/finished64.go) | 0 |
2 files changed, 16 insertions, 0 deletions
diff --git a/libpod/finished_32.go b/libpod/finished_32.go new file mode 100644 index 000000000..d66974177 --- /dev/null +++ b/libpod/finished_32.go @@ -0,0 +1,16 @@ +// +build arm 386 + +package libpod + +import ( + "os" + "syscall" + "time" +) + +// Get created time of a file +// Only works on 32-bit OSes +func getFinishedTime(fi os.FileInfo) time.Time { + st := fi.Sys().(*syscall.Stat_t) + return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec)) +} diff --git a/libpod/finished64.go b/libpod/finished_64.go index 11dbc9181..11dbc9181 100644 --- a/libpod/finished64.go +++ b/libpod/finished_64.go |