mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
new: showing last events in net.show instead of useless histogram
This commit is contained in:
parent
3d7c19b071
commit
eb1a53efa3
4 changed files with 50 additions and 21 deletions
|
@ -84,7 +84,7 @@ func (s *EventsStream) Start() error {
|
|||
var e session.Event
|
||||
select {
|
||||
case e = <-s.Session.Events.NewEvents:
|
||||
s.view(e)
|
||||
s.View(e, true)
|
||||
break
|
||||
|
||||
case <-s.quit:
|
||||
|
@ -98,9 +98,11 @@ func (s *EventsStream) Start() error {
|
|||
|
||||
func (s *EventsStream) Show() error {
|
||||
for _, e := range s.Session.Events.Sorted() {
|
||||
s.view(e)
|
||||
s.View(e, false)
|
||||
}
|
||||
|
||||
s.Session.Refresh()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue