From ef8b0af3141835a9898ed2d315641c73ec6cac24 Mon Sep 17 00:00:00 2001 From: cfc4n Date: Sat, 18 Nov 2023 16:30:00 +0800 Subject: [PATCH] chore : Decode kernel time to user time Signed-off-by: cfc4n --- user/event/event_gotls.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/user/event/event_gotls.go b/user/event/event_gotls.go index 1eee99cd7..57a9c87b5 100644 --- a/user/event/event_gotls.go +++ b/user/event/event_gotls.go @@ -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 }