summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-10 16:03:00 +0200
committerSimon Rettberg2022-05-10 16:03:00 +0200
commit6512791afab431d0477f6241de1d46f3398ba7d7 (patch)
treeff35f0630cb190d97616d9d08a9b00b19485d000 /modules-available/statistics/pages
parent[statistics] Show HDD count in list view (diff)
downloadslx-admin-6512791afab431d0477f6241de1d46f3398ba7d7.tar.gz
slx-admin-6512791afab431d0477f6241de1d46f3398ba7d7.tar.xz
slx-admin-6512791afab431d0477f6241de1d46f3398ba7d7.zip
[statistics] Only suggest clients with SSD for ID45 partition
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/hints.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/hints.inc.php b/modules-available/statistics/pages/hints.inc.php
index 67c42a18..6ef2490e 100644
--- a/modules-available/statistics/pages/hints.inc.php
+++ b/modules-available/statistics/pages/hints.inc.php
@@ -105,9 +105,11 @@ class SubPage
}
$q->addMachineColumn('clientip');
$q->addMachineColumn('hostname');
- $q->addLocalColumn('unused')->addCondition('>', 25000000000); // 25 GB
+ $q->addLocalColumn('unused')->addCondition('>', 50000000000); // 50 GB
$q->addMachineWhere('id44mb', '>', 20000); // 20 GB
$q->addMachineWhere('id45mb', '<', 20000); // 20 GB
+ // Only suggest SSD based systems, caching on spinning rust is usually slower than GBit
+ $q->addGlobalColumn('rotation_rate')->addCondition('=', 0);
foreach ($q->query()->fetchAll() as $row) {
$row['unused_s'] = Util::readableFileSize($row['unused']);
$row['id44mb_s'] = Util::readableFileSize($row['id44mb'], -1, 2);