Skip to content

Commit 5055703

Browse files
committed
programs/unixbench/parse: fix wrong index of regexp capture group
programs/unixbench/parse:40:13: W: Lint/OutOfRangeRegexpRef: $2 is out of range (1 regexp capture group detected). Signed-off-by: Philip Li <[email protected]>
1 parent 5b654e0 commit 5055703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/unixbench/parse

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ while (line = $stdin.gets)
3737
# Recursion Test -- Tower of Hanoi 16724188.3 lps (20.0 s, 7 samples)
3838
throughput = $1.to_f
3939
when /^.+ Benchmarks Index Score .* ([0-9.]+)$/
40-
score = $2
40+
score = $1.to_f
4141
end
4242
end
4343

0 commit comments

Comments
 (0)