Skip to content

Commit

Permalink
FreeBSD arm compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov committed Dec 31, 2020
1 parent 164f56a commit 61cf4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stat_times_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ func getTimeSpec(info os.FileInfo) timespec {
stat := info.Sys().(*syscall.Stat_t)
times := timespec{
Mtime: info.ModTime(),
Atime: time.Unix(stat.Atimespec.Sec, stat.Atimespec.Nsec),
Ctime: time.Unix(stat.Ctimespec.Sec, stat.Ctimespec.Nsec),
Atime: time.Unix(int64(stat.Atimespec.Sec), int64(stat.Atimespec.Nsec)),
Ctime: time.Unix(int64(stat.Ctimespec.Sec), int64(stat.Ctimespec.Nsec)),
}
return times
}

0 comments on commit 61cf4bd

Please sign in to comment.