summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-20 11:31:39 +0200
committerSimon Rettberg2019-04-20 11:31:39 +0200
commit85de662ae23f029371b340d7ba1e04dbcd10bcc7 (patch)
tree92337db070db7b1d435190071b59c69d7bbdd376 /modules-available/statistics/page.inc.php
parent[serversetup-bwlp-ipxe] Use badge for refcount in bootentry table (diff)
downloadslx-admin-85de662ae23f029371b340d7ba1e04dbcd10bcc7.tar.gz
slx-admin-85de662ae23f029371b340d7ba1e04dbcd10bcc7.tar.xz
slx-admin-85de662ae23f029371b340d7ba1e04dbcd10bcc7.zip
[statistics] Show RAM manufacturer; add JEDEC DB & parser
Diffstat (limited to 'modules-available/statistics/page.inc.php')
-rw-r--r--modules-available/statistics/page.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php
index c5da85fe..505fdf9a 100644
--- a/modules-available/statistics/page.inc.php
+++ b/modules-available/statistics/page.inc.php
@@ -722,7 +722,7 @@ class Page_Statistics extends Page
$row['lastseen_int'] = $row['lastseen'];
$row['lastseen'] = Util::prettyTime($row['lastseen']);
//$row['lastboot'] = Util::prettyTime($row['lastboot']);
- $row['gbram'] = round(round($row['mbram'] / 500) / 2, 1); // Trial and error until we got "expected" rounding..
+ $row['gbram'] = round(ceil($row['mbram'] / 512) / 2, 1); // Trial and error until we got "expected" rounding..
$row['gbtmp'] = round($row['id44mb'] / 1024);
$octets = explode('.', $row['clientip']);
if (count($octets) === 4) {