From a031b83a09a8628435317a03f199cdc18b78262f Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 1 Nov 2017 11:24:59 -0400 Subject: Initial checkin from CRI-O repo Signed-off-by: Matthew Heon --- oci/finished.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 oci/finished.go (limited to 'oci/finished.go') diff --git a/oci/finished.go b/oci/finished.go new file mode 100644 index 000000000..9fedbfb7a --- /dev/null +++ b/oci/finished.go @@ -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) +} -- cgit v1.2.3-54-g00ecf