support compilation for armv7

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2017-03-21 08:14:51 +00:00
parent 1005d1dba9
commit ae42cc4173
5 changed files with 31 additions and 4 deletions

View file

@ -159,7 +159,7 @@ func (s *Store) status(ingestPath string) (Status, error) {
var startedAt time.Time
if st, ok := fi.Sys().(*syscall.Stat_t); ok {
startedAt = time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
startedAt = time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
} else {
startedAt = fi.ModTime()
}