From e9ab3ca50c6212ee9ad343ee526c574f9c91a7b6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 16 Sep 2022 14:46:44 +0200 Subject: [statistics] Silence notice --- modules-available/statistics/pages/hints.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules-available/statistics/pages') diff --git a/modules-available/statistics/pages/hints.inc.php b/modules-available/statistics/pages/hints.inc.php index dc51b6ea..9b4fe568 100644 --- a/modules-available/statistics/pages/hints.inc.php +++ b/modules-available/statistics/pages/hints.inc.php @@ -92,7 +92,8 @@ class SubPage $list = []; foreach ($q->query(['machineuuid', 'Size', 'Manufacturer', 'Speed', 'Configured Memory Speed']) as $row) { // Sometimes configured speed reports as 2666 while rated speed is 2667 - if ($row['Configured Memory Speed'] + 33 >= $row['Speed']) + // Cast as these have a MT/s suffic, triggering a PHP notice about malformed numbers + if ((int)$row['Configured Memory Speed'] + 33 >= (int)$row['Speed']) continue; $list[] = $row; } -- cgit v1.2.3-55-g7522