mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
b83823283d
commit
a012775f2b
1 changed files with 2 additions and 4 deletions
|
@ -130,10 +130,8 @@ func (w *WDiscovery) getRow(e *WirelessStation) []string {
|
||||||
if sinceStarted > aliveTimeInterval && sinceLastSeen <= aliveTimeInterval {
|
if sinceStarted > aliveTimeInterval && sinceLastSeen <= aliveTimeInterval {
|
||||||
// if endpoint seen in the last 10 seconds
|
// if endpoint seen in the last 10 seconds
|
||||||
seen = core.Bold(seen)
|
seen = core.Bold(seen)
|
||||||
} else if sinceLastSeen <= presentTimeInterval {
|
} else if sinceLastSeen > presentTimeInterval {
|
||||||
// if endpoint seen in the last 60 seconds
|
// if endpoint not seen in the last 60 seconds
|
||||||
} else {
|
|
||||||
// not seen in a while
|
|
||||||
seen = core.Dim(seen)
|
seen = core.Dim(seen)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue