mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 19:37:51 +00:00
clean up
This commit is contained in:
parent
feb8997ca8
commit
5d070b47bb
1 changed files with 2 additions and 3 deletions
|
|
@ -4,11 +4,10 @@ package main
|
|||
|
||||
import (
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
func CTimeNano(stat *syscall.Stat_t) int64 {
|
||||
NANOS := int64(1e9) // number of nanosecs in 1 sec
|
||||
ts := stat.Ctimespec
|
||||
time.Unix(int64(ts.Sec), int64(ts.Nsec))
|
||||
return int64(ts.Sec)*1e9 + int64(ts.Nsec)
|
||||
return ts.Sec*NANOS + ts.Nsec
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue