We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a03b327 commit 8dc9804Copy full SHA for 8dc9804
interface/web/mail/user_quota_stats.php
@@ -60,16 +60,10 @@ function prepareDataRow($rec)
60
$rec['percentage_sort'] = round(100 * $rec['used'] / $rec['quota']);
61
$rec['quota'] = round($rec['quota'] / 1048576, 4).' MB';
62
}
63
-
64
+ $rec['progressbar'] = $rec['percentage_sort'] > 100 ? 100 : $rec['percentage_sort'];
+
65
$rec['used_sort'] = $rec['used'];
66
-/*
67
- if($rec['used'] < 1544000) {
68
- $rec['used'] = round($rec['used'] / 1024, 4).' KB';
69
- } else {
70
- $rec['used'] = round($rec['used'] / 1048576, 4).' MB';
71
- }
72
-*/
73
$rec['used']=$app->functions->formatBytes($rec['used']);
74
if ($rec['used'] == 'NAN') $rec['used']='0 KB';
75
0 commit comments