summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting
diff options
context:
space:
mode:
authorSimon Rettberg2023-09-25 15:46:48 +0200
committerSimon Rettberg2023-09-25 15:46:48 +0200
commitc2b5d25d4aa5cf98375559b322feeb7a33f45bea (patch)
tree07b60506f180707931e8f731f10ad964beceebfa /modules-available/statistics_reporting
parent[statistics] Fix status-icon (diff)
downloadslx-admin-c2b5d25d4aa5cf98375559b322feeb7a33f45bea.tar.gz
slx-admin-c2b5d25d4aa5cf98375559b322feeb7a33f45bea.tar.xz
slx-admin-c2b5d25d4aa5cf98375559b322feeb7a33f45bea.zip
[statistics_reporting] Future-proof mem check :>
Diffstat (limited to 'modules-available/statistics_reporting')
-rw-r--r--modules-available/statistics_reporting/inc/queries.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics_reporting/inc/queries.inc.php b/modules-available/statistics_reporting/inc/queries.inc.php
index 90c43918..e82e79a4 100644
--- a/modules-available/statistics_reporting/inc/queries.inc.php
+++ b/modules-available/statistics_reporting/inc/queries.inc.php
@@ -407,7 +407,7 @@ class Queries
array('salt' => GetData::$salt));
$prev = 0;
$str = ' ';
- foreach (array(0.5, 1, 1.5, 2, 3, 4, 6, 8, 10, 12, 16, 20, 24, 28, 32, 40, 48, 64, 72, 80, 88, 96, 128, 192, 256) as $val) {
+ foreach ([0.5, 1, 1.5, 2, 3, 4, 6, 8, 10, 12, 16, 20, 24, 28, 32, 40, 48, 64, 72, 80, 88, 96, 128, 192, 256, 512, 768, 1024, 1536, 2048, 3072, 4096] as $val) {
$str .= 'WHEN mbram < ' . round(($val + $prev) * 512) . " THEN '" . $prev . "' ";
$prev = $val;
}