Skip to content

Commit

Permalink
Merge pull request #857 from mackerelio/fix-mailq
Browse files Browse the repository at this point in the history
[check-mailq] fix pattern
  • Loading branch information
lufia authored May 30, 2024
2 parents 3f1aff0 + ff3ce9d commit 1563dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-mailq/lib/check_mailq.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func run(args []string) *checkers.Checker {
outs := strings.Split(string(out), "\n")
line := outs[len(outs)-2]

re := regexp.MustCompile(`-- \d+ Kbytes in (\d+) Requests.`)
re := regexp.MustCompile(`-- \d+ Kbytes in (\d+) (?:Request|Requests)\.`)
if re.MatchString(line) {
queueStr = re.ReplaceAllString(line, "$1")
queue, err = strconv.ParseInt(queueStr, 10, 64)
Expand Down

0 comments on commit 1563dfe

Please sign in to comment.