Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ func queryFluxV2(fluxQuery, url, org, token string, c *http.Client) {
}

// If we got perfdata we print the only the last value
if len(perfData) > 1 {
check.ExitRaw(rc, "InfluxDB Query Status", "|", perfData[len(perfData)-1].String())
if len(perfData) >= 1 {
check.ExitRaw(rc, "InfluxDB Query Status", perfData[len(perfData)-1].String(), "|", perfData[len(perfData)-1].String())
}

check.ExitRaw(rc, "InfluxDB Query Status")
Expand Down
Loading