summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2022-11-15 17:20:20 +0100
committerSimon Rettberg2022-11-15 17:20:20 +0100
commit74f1db5c2670f7247abc8ea8bbb9b171c9e88f6a (patch)
treed17382ebfcebaa38df34adac61d37eff45913d10 /modules-available/statistics/pages
parent[statistics] Fix potential invalid array access (diff)
downloadslx-admin-74f1db5c2670f7247abc8ea8bbb9b171c9e88f6a.tar.gz
slx-admin-74f1db5c2670f7247abc8ea8bbb9b171c9e88f6a.tar.xz
slx-admin-74f1db5c2670f7247abc8ea8bbb9b171c9e88f6a.zip
[inc/Dictionary] Add locale-aware number formatting method
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/machine.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php
index e72b96c8..f9724b5c 100644
--- a/modules-available/statistics/pages/machine.inc.php
+++ b/modules-available/statistics/pages/machine.inc.php
@@ -201,9 +201,9 @@ class SubPage
$client['lastboot_s'] .= ' (Up ' . floor($uptime / 86400) . 'd ' . gmdate('H:i', $uptime) . ')';
}
}
- $client['gbram'] = round(ceil($client['mbram'] / 512) / 2, 1);
- $client['gbtmp'] = round($client['id44mb'] / 1024);
- $client['gbid45'] = round($client['id45mb'] / 1024);
+ $client['gbram'] = Dictionary::number(ceil($client['mbram'] / 512) / 2, 1);
+ $client['gbtmp'] = Dictionary::number($client['id44mb'] / 1024);
+ $client['gbid45'] = Dictionary::number($client['id45mb'] / 1024);
foreach (['tmp', 'id45', 'swap', 'mem'] as $item) {
if ($client['live_' . $item . 'size'] == 0)
continue;