From fc460922ad6195879bfddc8c52f044cbb34ced90 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 21 Oct 2023 11:25:39 +0200 Subject: [PATCH] events: fix event type string conversion Signed-off-by: Nicola Murino --- internal/httpd/api_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/httpd/api_events.go b/internal/httpd/api_events.go index 19d9c270..9d911d2e 100644 --- a/internal/httpd/api_events.go +++ b/internal/httpd/api_events.go @@ -132,7 +132,7 @@ func getLogSearchParamsFromRequest(r *http.Request) (eventsearcher.LogEventSearc s.Protocols = getCommaSeparatedQueryParam(r, "protocols") events := getCommaSeparatedQueryParam(r, "events") for _, ev := range events { - evType, err := strconv.ParseUint(ev, 10, 32) + evType, err := strconv.ParseInt(ev, 10, 32) if err == nil { s.Events = append(s.Events, int32(evType)) }