From 85de662ae23f029371b340d7ba1e04dbcd10bcc7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 20 Apr 2019 11:31:39 +0200 Subject: [statistics] Show RAM manufacturer; add JEDEC DB & parser --- modules-available/statistics/page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/statistics/page.inc.php') 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) { -- cgit v1.2.3-55-g7522