Skip to content
Snippets Groups Projects
Commit 3319b451 authored by Florian Schaal's avatar Florian Schaal
Browse files

changed hard-coded conversion to formatBytes for mail-user-quota stats

parent 5561eb82
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ $list_def_file = "list/user_quota_stats.list.php";
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('functions');
$app->load('listform_actions');
// $tmp_rec = $app->db->queryOneRecord("SELECT data from monitor_data WHERE type = 'harddisk_quota' ORDER BY created DESC");
......@@ -63,11 +65,15 @@ class list_action extends listform_actions {
$rec['used_sort'] = $rec['used'];
/*
if($rec['used'] < 1544000) {
$rec['used'] = round($rec['used'] / 1024, 4).' KB';
} else {
$rec['used'] = round($rec['used'] / 1048576, 4).' MB';
}
*/
$rec['used']=$app->functions->formatBytes($rec['used']);
if ($rec['used'] == 'NAN') $rec['used']='0 KB';
//* The variable "id" contains always the index variable
$rec['id'] = $rec[$this->idx_key];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment