From c1766e36059f415aa575dff2efd189e6080a49f6 Mon Sep 17 00:00:00 2001 From: yasin-cs-ko-ak Date: Thu, 6 Oct 2022 10:30:11 +0530 Subject: [PATCH] UpdatedTime Issues Fixed UpdatedTime Issues Fixed --- src/observability/kubearmor.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/observability/kubearmor.go b/src/observability/kubearmor.go index b2862d1c..fbb2fd6c 100644 --- a/src/observability/kubearmor.go +++ b/src/observability/kubearmor.go @@ -179,11 +179,13 @@ func fetchSysServerConnDetail(log types.KubeArmorLog) (types.SysObsNwData, error if strings.Contains(log.Data, "tcp_connect") || strings.Contains(log.Data, "SYS_CONNECT") { conn.InOut = "OUT" conn.Count++ - conn.UpdatedTime = time.UnixDate + t := time.Unix(log.UpdatedTime, 0) + conn.UpdatedTime = t.Format(time.UnixDate) } else if strings.Contains(log.Data, "tcp_accept") || strings.Contains(log.Data, "SYS_ACCEPT") { conn.InOut = "IN" conn.Count++ - conn.UpdatedTime = time.UnixDate + t := time.Unix(log.UpdatedTime, 0) + conn.UpdatedTime = t.Format(time.UnixDate) } else { return types.SysObsNwData{}, err }