diff options
author | Simon Rettberg | 2022-05-24 14:42:31 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-24 14:42:31 +0200 |
commit | f62092beb3fcf6ba48b4930b67a7dd579f2c1695 (patch) | |
tree | 35dabb44e2691d44182a4ab19010135b272bec07 /modules-available/statistics/inc/hardwareparserlegacy.inc.php | |
parent | [rebootcontrol] Run reachability checks a little more often (diff) | |
download | slx-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/hardwareparserlegacy.inc.php')
-rw-r--r-- | modules-available/statistics/inc/hardwareparserlegacy.inc.php | 6 |
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) |