Payment setting frontend part 1

This commit is contained in:
Čarodej
2022-01-07 09:53:59 +01:00
parent 86dac75071
commit 8b7a80e10d
48 changed files with 1470 additions and 1234 deletions

View File

@@ -474,7 +474,7 @@ if (! function_exists('get_storage_percentage')) {
/**
* Get storage usage in percent
*/
function get_storage_percentage(int $used, int $maxAmount): float
function get_storage_percentage(int $used, float $maxAmount): float
{
// Format gigabytes to bytes
$total = intval(Metric::gigabytes($maxAmount)->numberOfBytes());