mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
fix: make sure events are sorted
This commit is contained in:
parent
9e36f55aa4
commit
5d3381fc76
3 changed files with 14 additions and 2 deletions
|
@ -31,7 +31,7 @@ func RunRestCommand(c *gin.Context) {
|
|||
func ShowRestEvents(c *gin.Context) {
|
||||
var err error
|
||||
|
||||
events := session.I.Events.Events()
|
||||
events := session.I.Events.Sorted()
|
||||
nmax := len(events)
|
||||
n := nmax
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ func (s *EventsStream) Start() error {
|
|||
}
|
||||
|
||||
func (s *EventsStream) Show() error {
|
||||
for _, e := range s.Session.Events.Events() {
|
||||
for _, e := range s.Session.Events.Sorted() {
|
||||
s.dumpEvent(e)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue