fix: make sure events are sorted

This commit is contained in:
evilsocket 2018-01-29 14:20:24 +01:00
commit 5d3381fc76
3 changed files with 14 additions and 2 deletions

View file

@ -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

View file

@ -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)
}