summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/inc
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-24 14:42:31 +0200
committerSimon Rettberg2022-05-24 14:42:31 +0200
commitf62092beb3fcf6ba48b4930b67a7dd579f2c1695 (patch)
tree35dabb44e2691d44182a4ab19010135b272bec07 /modules-available/statistics/inc
parent[rebootcontrol] Run reachability checks a little more often (diff)
downloadslx-admin-f62092beb3fcf6ba48b4930b67a7dd579f2c1695.tar.gz
slx-admin-f62092beb3fcf6ba48b4930b67a7dd579f2c1695.tar.xz
slx-admin-f62092beb3fcf6ba48b4930b67a7dd579f2c1695.zip
[statistics] Fix displaying CPU core/thread info
Diffstat (limited to 'modules-available/statistics/inc')
-rw-r--r--modules-available/statistics/inc/hardwareparserlegacy.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/statistics/inc/hardwareparserlegacy.inc.php b/modules-available/statistics/inc/hardwareparserlegacy.inc.php
index 2965a3fb..7ee39bce 100644
--- a/modules-available/statistics/inc/hardwareparserlegacy.inc.php
+++ b/modules-available/statistics/inc/hardwareparserlegacy.inc.php
@@ -193,9 +193,9 @@ class HardwareParserLegacy
foreach ($out as $entry) {
$tmp[str_replace(' ', '', $entry[1])] = $entry[2];
}
- $row['cpu']['sockets'] = $tmp['Sockets'];
- $row['cpu']['cores'] = $tmp['Realcores'];
- $row['cpu']['threads'] = $tmp['Virtualcores'];
+ $row['cpu-sockets'] = $tmp['Sockets'];
+ $row['cpu-cores'] = $tmp['Realcores'];
+ $row['cpu-threads'] = $tmp['Virtualcores'];
}
public static function parseDmiDecode(&$row, $data)