diff options
author | Simon Rettberg | 2022-11-11 15:41:44 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-11-11 15:41:44 +0100 |
commit | aaa81e0a26085f58e5cd3290950c44f7b0f6c02f (patch) | |
tree | 25da4d09edf9de04db025928797bda011fdec343 /modules-available/statistics/pages | |
parent | [statistics] Client list: Add option to hide columns (diff) | |
download | slx-admin-aaa81e0a26085f58e5cd3290950c44f7b0f6c02f.tar.gz slx-admin-aaa81e0a26085f58e5cd3290950c44f7b0f6c02f.tar.xz slx-admin-aaa81e0a26085f58e5cd3290950c44f7b0f6c02f.zip |
[statistics] Add ID45 column to client list
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r-- | modules-available/statistics/pages/list.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/list.inc.php b/modules-available/statistics/pages/list.inc.php index 1b6879e2..ce686d56 100644 --- a/modules-available/statistics/pages/list.inc.php +++ b/modules-available/statistics/pages/list.inc.php @@ -38,7 +38,7 @@ class SubPage } $allRows = Database::queryAll("SELECT m.machineuuid, m.locationid, m.macaddr, m.clientip, m.lastseen, m.logintime, m.state, m.currentuser, m.currentrunmode, m.realcores, m.mbram, m.kvmstate, m.cpumodel, m.id44mb, - m.hostname, m.notes IS NOT NULL AS hasnotes, + m.id45mb, m.hostname, m.notes IS NOT NULL AS hasnotes, m.badsectors, Count(s.machineuuid) AS confvars $xtra FROM machine m LEFT JOIN setting_machine s ON (m.machineuuid = s.machineuuid) $join WHERE $where GROUP BY m.machineuuid", $args); @@ -78,6 +78,7 @@ class SubPage //$row['lastboot'] = Util::prettyTime($row['lastboot']); $row['gbram'] = round(ceil($row['mbram'] / 512) / 2, 1); // Trial and error until we got "expected" rounding.. $row['gbtmp'] = round($row['id44mb'] / 1024); + $row['gbpersist'] = round($row['id45mb'] / 1024); $octets = explode('.', $row['clientip']); if (count($octets) === 4) { $row['subnet'] = "$octets[0].$octets[1].$octets[2]"; |