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

cpu.rb: drop field name and a colon from flags
This commit is contained in:
Mike McQuaid 2020-12-01 12:44:56 +00:00 committed by GitHub
commit 2f0babe86f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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