diff options
author | Simon Rettberg | 2018-01-15 17:21:18 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-01-15 17:21:18 +0100 |
commit | 9b8295a02aa5b8e864c1f42ec52ead4fe0dd3f2f (patch) | |
tree | 3ca156f4ee9e198774f3db5185828e22c06d85b4 /modules-available/statistics/page.inc.php | |
parent | [runmode] Do not allow re-assigning clients to new runmode if old mode doesn'... (diff) | |
download | slx-admin-9b8295a02aa5b8e864c1f42ec52ead4fe0dd3f2f.tar.gz slx-admin-9b8295a02aa5b8e864c1f42ec52ead4fe0dd3f2f.tar.xz slx-admin-9b8295a02aa5b8e864c1f42ec52ead4fe0dd3f2f.zip |
[statistics] Properly display runmode name in client list
Diffstat (limited to 'modules-available/statistics/page.inc.php')
-rw-r--r-- | modules-available/statistics/page.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php index ac103a41..5fe4ebfa 100644 --- a/modules-available/statistics/page.inc.php +++ b/modules-available/statistics/page.inc.php @@ -661,6 +661,13 @@ class Page_Statistics extends Page } } $row['cpumodel'] = preg_replace('/\(R\)|\(TM\)|\bintel\b|\bamd\b|\bcpu\b|dual-core|\bdual\s+core\b|\bdual\b|\bprocessor\b/i', ' ', $row['cpumodel']); + if (!empty($row['rmmodule'])) { + $data = RunMode::getRunMode($row['machineuuid'], RunMode::DATA_STRINGS); + if ($data !== false) { + $row['moduleName'] = $data['moduleName']; + $row['modeName'] = $data['modeName']; + } + } $rows[] = $row; } if ($singleMachine !== false && $singleMachine !== 'none') { |