summaryrefslogtreecommitdiff
path: root/libpod/finished64.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-02-09 10:19:25 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-09 17:00:04 +0000
commit4ea26aace4d7fff52c52b438bd6df03645834b4f (patch)
tree5d96fc6fd7d755d02818d551c39d068d682324fe /libpod/finished64.go
parenta8092a105b493f3c7f9ee063aa2ca035bc7f9be8 (diff)
downloadpodman-4ea26aace4d7fff52c52b438bd6df03645834b4f.tar.gz
podman-4ea26aace4d7fff52c52b438bd6df03645834b4f.tar.bz2
podman-4ea26aace4d7fff52c52b438bd6df03645834b4f.zip
libpod/finished_amd64.go -> libpod/finished64.go
Rename finished_amd64 to finished64.go to more accurately reflect that it covers all 64bit arches. Also, bumped the EPOCH for gitvalidation to speed up validations. Signed-off-by: baude <bbaude@redhat.com> Closes: #318 Approved by: mheon
Diffstat (limited to 'libpod/finished64.go')
-rw-r--r--libpod/finished64.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/libpod/finished64.go b/libpod/finished64.go
new file mode 100644
index 000000000..11dbc9181
--- /dev/null
+++ b/libpod/finished64.go
@@ -0,0 +1,16 @@
+// +build !arm,!386
+
+package libpod
+
+import (
+ "os"
+ "syscall"
+ "time"
+)
+
+// Get the created time of a file
+// Only works on 64-bit OSes
+func getFinishedTime(fi os.FileInfo) time.Time {
+ st := fi.Sys().(*syscall.Stat_t)
+ return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
+}