Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
[fix,improvment] Updating time field
Browse files Browse the repository at this point in the history
  • Loading branch information
gboddin committed Dec 21, 2020
1 parent ec082b4 commit a4932dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tcpid.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io/ioutil"
"log"
"os"
"time"
)

type TcpIdCommand struct {
Expand Down Expand Up @@ -41,6 +42,7 @@ func (cmd *TcpIdCommand) Run() error {
event.AddSource("l9tcpid")
event.EventType = "service"
event.Protocol = "tcp"
event.Time = time.Now()
if err != nil {
return err
}
Expand Down

0 comments on commit a4932dc

Please sign in to comment.