diff --git a/fuseops/convert.go b/fuseops/convert.go index 70b43dc..3ce0c99 100644 --- a/fuseops/convert.go +++ b/fuseops/convert.go @@ -417,7 +417,12 @@ func Convert( return } -func convertTime(t time.Time) (secs uint64, nsec uint32) +func convertTime(t time.Time) (secs uint64, nsec uint32) { + totalNano := t.UnixNano() + secs = uint64(totalNano / 1e9) + nsec = uint32(totalNano % 1e9) + return +} func convertAttributes( inodeID InodeID,