From de57fcdc9230f645f339384e04252b4f91bab278 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Tue, 30 Jan 2018 12:15:14 +0100 Subject: [PATCH] fix: fix to avoid making all endpoints bold after the first 10 seconds --- modules/net_recon_show.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/net_recon_show.go b/modules/net_recon_show.go index 764c9dee..892dccec 100644 --- a/modules/net_recon_show.go +++ b/modules/net_recon_show.go @@ -56,7 +56,7 @@ func (d *Discovery) getRow(e *net.Endpoint) []string { // if endpoint was not found in ARP at least once addr = core.Dim(addr) mac = core.Dim(mac) - } else if sinceStarted > justJoinedTimeInterval && sinceFirstSeen <= justJoinedTimeInterval { + } else if sinceStarted > (justJoinedTimeInterval*2) && sinceFirstSeen <= justJoinedTimeInterval { // if endpoint was first seen in the last 10 seconds addr = core.Bold(addr) mac = core.Bold(mac)