Skip to content

Commit

Permalink
[check-mailq] fix pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
lufia committed May 30, 2024
1 parent 3f1aff0 commit ff3ce9d
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 ff3ce9d

Please sign in to comment.