From 4ea26aace4d7fff52c52b438bd6df03645834b4f Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 9 Feb 2018 10:19:25 -0600 Subject: 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 Closes: #318 Approved by: mheon --- Makefile | 2 +- libpod/finished64.go | 16 ++++++++++++++++ libpod/finished_amd64.go | 16 ---------------- 3 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 libpod/finished64.go delete mode 100644 libpod/finished_amd64.go diff --git a/Makefile b/Makefile index 14fd9ff1b..bb5779d25 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ GO ?= go -EPOCH_TEST_COMMIT ?= 858116f +EPOCH_TEST_COMMIT ?= 9e3a5da6 HEAD ?= HEAD PROJECT := github.com/projectatomic/libpod GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null) 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) +} diff --git a/libpod/finished_amd64.go b/libpod/finished_amd64.go deleted file mode 100644 index 11dbc9181..000000000 --- a/libpod/finished_amd64.go +++ /dev/null @@ -1,16 +0,0 @@ -// +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) -} -- cgit v1.2.3-54-g00ecf