Explorar o código

fix bug in getCPUinfo()

Odroid C1 with Armbian does not list "model name"  in "/proc/cpuinfo"
Sunz3r %!s(int64=6) %!d(string=hai) anos
pai
achega
bedd124b21
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      lib/nodeinfo.py

+ 3 - 0
lib/nodeinfo.py

@@ -70,6 +70,9 @@ class Nodeinfo(Respondd):
         if lineMatch:
           ret[lineMatch.group(1)] = lineMatch.group(2)
 
+    if 'model name' not in ret:
+      ret["model name"] = ret["Processor"]
+
     return ret
 
   @staticmethod