Skip to content

Commit

Permalink
Corrected wrong fix of issue #16, then also fix issue #17
Browse files Browse the repository at this point in the history
  • Loading branch information
qjerome committed Sep 28, 2019
1 parent 54d3cc2 commit 15c1970
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions evtx/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ type FileTime struct {

func (v *FileTime) Convert() (sec int64, nsec int64) {
nano := int64(10000000)
milli := int64(10000)
sec = int64(float64(v.Nanoseconds-11644473600*nano) / float64(nano))
nsec = (v.Nanoseconds - 11644473600*nano) - sec*milli
//milli := int64(10000)
sec = int64(float64(v.Nanoseconds)/float64(nano) - 11644473600.0)
nsec = ((v.Nanoseconds - 11644473600*nano) - sec*nano) * 100
return
}

Expand Down

0 comments on commit 15c1970

Please sign in to comment.