Skip to content

Commit 4fc0e50

Browse files
committed
chore: swap time.now.sub with time.since
1 parent 7ca2d6f commit 4fc0e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/falcon/extractor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func GetMessages(config *config.Config, ctx context.Context) (results map[string
313313
CveID: *vuln.Cve.ID,
314314
CveSeverity: vuln.Cve.Severity,
315315
TimestampFound: *vuln.CreatedTimestamp,
316-
DaysOpen: uint(math.Ceil(time.Now().Sub(createdTime).Hours() / 24)),
316+
DaysOpen: uint(math.Ceil(time.Since(createdTime).Hours() / 24)),
317317
}
318318

319319
for _, mitigation := range vuln.Remediation.Entities {

0 commit comments

Comments
 (0)