Skip to content
Snippets Groups Projects
Commit c6cbf959 authored by Shaun Jackman's avatar Shaun Jackman
Browse files

linux: Add ARM to CPU.type

parent b38c52f9
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,8 @@ module Hardware
def type
@type ||= if cpuinfo =~ /Intel|AMD/
:intel
elsif cpuinfo =~ /ARM|Marvell/
:arm
else
:dunno
end
......@@ -71,7 +73,7 @@ module Hardware
end
def flags
@flags ||= cpuinfo[/^flags.*/, 0].split
@flags ||= cpuinfo[/^(flags|Features).*/, 0].split
end
# Compatibility with Mac method, which returns lowercase symbols
......
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