Skip to content
Snippets Groups Projects
Unverified Commit 2f0babe8 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

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

cpu.rb: drop field name and a colon from flags
parents e6a53f43 8738ad32
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment