Merge pull request #277 from olysonek/cpu-comparison-fix
cpu: Fix string comparisons
This commit is contained in:
commit
d84ac30f9e
1 changed files with 2 additions and 2 deletions
|
|
@ -73,9 +73,9 @@ class CPULatencyPlugin(base.Plugin):
|
|||
# "TransmetaCPU", "UMC UMC UMC"
|
||||
cpu = procfs.cpuinfo()
|
||||
vendor = cpu.tags.get("vendor_id")
|
||||
if vendor is "GenuineIntel":
|
||||
if vendor == "GenuineIntel":
|
||||
self._is_intel = True
|
||||
elif vendor is "AuthenticAMD" or vendor is "HygonGenuine":
|
||||
elif vendor == "AuthenticAMD" or vendor == "HygonGenuine":
|
||||
self._is_amd = True
|
||||
else:
|
||||
# We always assign Intel, unless we know better
|
||||
|
|
|
|||
Loading…
Reference in a new issue