mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
fix: fixed 'net.show by seen' sorting
This commit is contained in:
parent
df120f5e21
commit
2221c510ba
1 changed files with 1 additions and 1 deletions
|
@ -14,4 +14,4 @@ type BySeenSorter []*net.Endpoint
|
|||
|
||||
func (a BySeenSorter) Len() int { return len(a) }
|
||||
func (a BySeenSorter) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
||||
func (a BySeenSorter) Less(i, j int) bool { return a[i].LastSeen.Before(a[j].LastSeen) }
|
||||
func (a BySeenSorter) Less(i, j int) bool { return a[i].LastSeen.After(a[j].LastSeen) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue