diff --git a/cmd/osquery-perf/agent.go b/cmd/osquery-perf/agent.go index c5c0df6a7..84e6085e2 100644 --- a/cmd/osquery-perf/agent.go +++ b/cmd/osquery-perf/agent.go @@ -843,7 +843,7 @@ func (a *agent) config() { q.Name = queryName q.NumResults = 1 parts := strings.Split(q.Name, "_") - if len(parts) > 0 { + if len(parts) == 2 { num, err := strconv.ParseInt(parts[1], 10, 32) if err != nil { num = 1