소스 검색

events: fix event type string conversion

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
Nicola Murino 1 년 전
부모
커밋
fc460922ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      internal/httpd/api_events.go

+ 1 - 1
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))
 		}