summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/machine.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php
index 0b951396..250331cf 100644
--- a/modules-available/statistics/pages/machine.inc.php
+++ b/modules-available/statistics/pages/machine.inc.php
@@ -467,7 +467,6 @@ class SubPage
private static function parseJson(string $uuid, array $json): array
{
$return = [
- 'cpu' => $json['cpu'] ?? [],
'lspci' => $json['lspci'] ?? [],
'ram' => array_map(function($item) {
return HardwareParser::prepareDmiProperties($item);
@@ -491,6 +490,9 @@ class SubPage
$q = new HardwareQuery(HardwareInfo::MAINBOARD, $uuid);
$q->addGlobalColumn('Memory Maximum Capacity');
$q->addGlobalColumn('Memory Slot Count');
+ $q->addLocalColumn('cpu-sockets');
+ $q->addLocalColumn('cpu-cores');
+ $q->addLocalColumn('cpu-threads');
$res = $q->query()->fetch();
if (is_array($res)) {
$return += $res;