Skip to content

Commit

Permalink
chore : Decode kernel time to user time
Browse files Browse the repository at this point in the history
Signed-off-by: cfc4n <[email protected]>
  • Loading branch information
cfc4n committed Nov 18, 2023
1 parent 0f918d3 commit ef8b0af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user/event/event_gotls.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ func (ge *GoTLSEvent) Decode(payload []byte) error {
ge.Data = make([]byte, ge.Len)
err = binary.Read(r, binary.LittleEndian, &ge.Data)
}
decodedKtime, err := DecodeKtime(int64(ge.TimestampNS), true)
if err == nil {
ge.TimestampNS = uint64(decodedKtime.Unix())
}

return err
}
Expand Down

0 comments on commit ef8b0af

Please sign in to comment.