summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2023-09-25 15:27:54 +0200
committerSimon Rettberg2023-09-25 15:27:54 +0200
commitab326fc8fb13d7f7c1f873d3d6fce3f3baaee17e (patch)
tree57c2641ebed378cef5fc5e11019b4c4098c0be82 /modules-available/statistics/pages
parent[statistics] Add hints for old CPUs (to be implemented on client) (diff)
downloadslx-admin-ab326fc8fb13d7f7c1f873d3d6fce3f3baaee17e.tar.gz
slx-admin-ab326fc8fb13d7f7c1f873d3d6fce3f3baaee17e.tar.xz
slx-admin-ab326fc8fb13d7f7c1f873d3d6fce3f3baaee17e.zip
[statistics] Fix status-icon
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/hints.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/hints.inc.php b/modules-available/statistics/pages/hints.inc.php
index fbde5b45..bfb28c24 100644
--- a/modules-available/statistics/pages/hints.inc.php
+++ b/modules-available/statistics/pages/hints.inc.php
@@ -208,7 +208,10 @@ class SubPage
$q->addMachineColumn('state');
$q->addMachineColumn('cpumodel');
$q->addGlobalColumn('vmx-legacy')->addCondition('<>', 0);
- $list = $q->query()->fetchAll();
+ foreach ($q->query() as $row) {
+ $row['icon'] = StatisticsStyling::machineStateToIcon($row['state']);
+ $list[] = $row;
+ }
if (empty($list))
return;
ArrayUtil::sortByColumn($list, 'hostname');