Skip to content

Commit

Permalink
fix: unix timestamp to protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
josedonizetti committed Jan 18, 2024
1 parent e05247a commit cb4f4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/grpc/tracee.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func convertTraceeEventToProto(e trace.Event) (*pb.Event, error) {
}

if e.Timestamp != 0 {
event.Timestamp = timestamppb.New(time.Unix(int64(e.Timestamp), 0))
event.Timestamp = timestamppb.New(time.Unix(0, int64(e.Timestamp)))
}

return event, nil
Expand All @@ -185,7 +185,7 @@ func getProcess(e trace.Event) *pb.Process {

var threadStartTime *timestamp.Timestamp
if e.ThreadStartTime != 0 {
threadStartTime = timestamppb.New(time.Unix(int64(e.ThreadStartTime), 0))
threadStartTime = timestamppb.New(time.Unix(0, int64(e.ThreadStartTime)))
}

var executable *pb.Executable
Expand Down

0 comments on commit cb4f4a9

Please sign in to comment.