Skip to content

Commit 8dc9804

Browse files
author
Pascal Dreissen
committed
Missed commit on dashboard enhancements / progressbars
1 parent a03b327 commit 8dc9804

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

interface/web/mail/user_quota_stats.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,10 @@ function prepareDataRow($rec)
6060
$rec['percentage_sort'] = round(100 * $rec['used'] / $rec['quota']);
6161
$rec['quota'] = round($rec['quota'] / 1048576, 4).' MB';
6262
}
63-
64-
63+
$rec['progressbar'] = $rec['percentage_sort'] > 100 ? 100 : $rec['percentage_sort'];
64+
6565
$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-
*/
66+
7367
$rec['used']=$app->functions->formatBytes($rec['used']);
7468
if ($rec['used'] == 'NAN') $rec['used']='0 KB';
7569

0 commit comments

Comments
 (0)