diff --git a/samples/memfs/memfs_test.go b/samples/memfs/memfs_test.go index ea2756c..682a50d 100644 --- a/samples/memfs/memfs_test.go +++ b/samples/memfs/memfs_test.go @@ -57,7 +57,9 @@ func currentGid() uint32 { return uint32(gid) } -func timespecToTime(ts syscall.Timespec) time.Time +func timespecToTime(ts syscall.Timespec) time.Time { + return time.Unix(ts.Sec, ts.Nsec) +} //////////////////////////////////////////////////////////////////////// // Boilerplate