refact: last 20 events in netshow were redundant

This commit is contained in:
evilsocket 2018-02-27 04:56:21 +01:00
commit 3e640c4bac
3 changed files with 3 additions and 22 deletions

View file

@ -156,6 +156,8 @@ func (s *EventsStream) Show(limit int) error {
from = num - limit
}
fmt.Println()
for _, e := range events[from:num] {
s.View(e, false)
}