[PATCH lkp-tests] stats/sysbench-threads-git: refactor regex match

4 Dec
2020
4 Dec
'20
6:45 p.m.
Signed-off-by: Lu Kaiyi <2392863668@qq.com> --- stats/sysbench-threads-git | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats/sysbench-threads-git b/stats/sysbench-threads-git index afe5d664..440eb798 100755 --- a/stats/sysbench-threads-git +++ b/stats/sysbench-threads-git @@ -8,7 +8,7 @@ # min: 0.04ms $stdin.each_line do |line| - next unless line =~ /^\s+total time:\s+([0-9.]+)/ + next unless line =~ /^\s+total\stime:\s+(\S+)/ - puts "total time: #{$1.to_f}s" + puts "total time: #{$1}" end -- 2.23.0
1545
Age (days ago)
1545
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lu Kaiyi