mirror of
https://github.com/pkali/piradio-mini.git
synced 2026-05-20 22:34:22 +02:00
Better processor cores counting.
This commit is contained in:
+1
-1
@@ -855,7 +855,7 @@ class Radio:
|
||||
|
||||
# Get number of processor cores from /proc/cpuinfo
|
||||
def getCores(self):
|
||||
cores_text = self.execCommand("cat /proc/cpuinfo | grep -c processor")
|
||||
cores_text = self.execCommand("cat /proc/cpuinfo | grep -c 'processor[[:blank:]]:'")
|
||||
self.cores = int(cores_text)
|
||||
return self.cores
|
||||
|
||||
|
||||
Reference in New Issue
Block a user