summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2022-09-16 14:46:44 +0200
committerSimon Rettberg2022-09-16 14:46:44 +0200
commite9ab3ca50c6212ee9ad343ee526c574f9c91a7b6 (patch)
treee42f702edb6c724310781d706a0474649dc739f6 /modules-available/statistics/pages
parent[baseconfig] Fix comment typo (diff)
downloadslx-admin-e9ab3ca50c6212ee9ad343ee526c574f9c91a7b6.tar.gz
slx-admin-e9ab3ca50c6212ee9ad343ee526c574f9c91a7b6.tar.xz
slx-admin-e9ab3ca50c6212ee9ad343ee526c574f9c91a7b6.zip
[statistics] Silence notice
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/hints.inc.php3
1 files changed, 2 insertions, 1 deletions
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;
}