Merge pull request #9325 from maxim-belkin/cpu-flags
cpu.rb: drop field name and a colon from flags
This commit is contained in:
commit
2f0babe86f
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user