diff options
Diffstat (limited to 'internal/syscallcompat/unix2syscall_linux.go')
-rw-r--r-- | internal/syscallcompat/unix2syscall_linux.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/syscallcompat/unix2syscall_linux.go b/internal/syscallcompat/unix2syscall_linux.go index 3162025..87ac522 100644 --- a/internal/syscallcompat/unix2syscall_linux.go +++ b/internal/syscallcompat/unix2syscall_linux.go @@ -21,8 +21,8 @@ func Unix2syscall(u unix.Stat_t) syscall.Stat_t { Size: u.Size, Blksize: u.Blksize, Blocks: u.Blocks, - Atim: syscall.Timespec(u.Atim), - Mtim: syscall.Timespec(u.Mtim), - Ctim: syscall.Timespec(u.Ctim), + Atim: syscall.NsecToTimespec(unix.TimespecToNsec(u.Atim)), + Mtim: syscall.NsecToTimespec(unix.TimespecToNsec(u.Mtim)), + Ctim: syscall.NsecToTimespec(unix.TimespecToNsec(u.Ctim)), } } |