Commit 75e9eb21 authored by Aaron Jacobs's avatar Aaron Jacobs

convertTime

parent 987b494d
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment