fix: fix to avoid making all endpoints bold after the first 10 seconds

This commit is contained in:
evilsocket 2018-01-30 12:15:14 +01:00
commit de57fcdc92

View file

@ -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)