Skip to content

Commit ff3ce9d

Browse files
committed
[check-mailq] fix pattern
1 parent 3f1aff0 commit ff3ce9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check-mailq/lib/check_mailq.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func run(args []string) *checkers.Checker {
7575
outs := strings.Split(string(out), "\n")
7676
line := outs[len(outs)-2]
7777

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

0 commit comments

Comments
 (0)