未验证 提交 2f0babe8 编写于 作者: M Mike McQuaid 提交者: GitHub

Merge pull request #9325 from maxim-belkin/cpu-flags

cpu.rb: drop field name and a colon from flags
......@@ -69,8 +69,9 @@ module Hardware
end
end
# Supported CPU instructions
def flags
@flags ||= cpuinfo[/^(flags|Features).*/, 0]&.split
@flags ||= cpuinfo[/^(?:flags|Features)\s*: (.*)/, 1]&.split
@flags ||= []
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册