Skip to content
Snippets Groups Projects
Verified Commit e3020552 authored by Damien's avatar Damien
Browse files

FEAT #7731 Limit size format

parent b84a69c3
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,7 @@ class DocserverController
} else {
$docserver['actualSizeFormatted'] = round($docserver['actual_size_number'] / 1000000, 3) . ' Mo';
}
if ($docserver['size_limit_number'] > 1000000000) {
$docserver['limitSizeFormatted'] = round($docserver['size_limit_number'] / 1000000000, 3) . ' Go';
} else {
$docserver['limitSizeFormatted'] = round($docserver['size_limit_number'] / 1000000, 3) . ' Mo';
}
$docserver['limitSizeFormatted'] = round($docserver['size_limit_number'] / 1000000000, 3); // Giga
$docserver['percentage'] = round($docserver['actual_size_number'] / $docserver['size_limit_number'] * 100, 2);
$sortedDocservers[$docserver['docserver_type_id']][] = $docserver;
$types[] = $docserver['docserver_type_id'];
......
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