Commit 701bad2f authored by Jens Langhammer's avatar Jens Langhammer

fix wrong size calc

parent 6367aa0e
......@@ -13,7 +13,7 @@ function get_packages() {
$data = $data[1];
switch ($key) {
case 'size':
$data = ceil(intval($data) / 10 / 10 / 10 / 10); // Convert from byte to MB
$data = number_format($data / 1048576, 2); // Convert from byte to MB
break;
default:
$data = $data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment