Merge branch '0.11-dev' of github.com:Froxlor/Froxlor into 0.11-dev

This commit is contained in:
Michael Kaufmann
2022-02-22 19:31:32 +01:00

View File

@@ -1,6 +1,8 @@
<?php <?php
namespace Froxlor\UI\Callbacks; namespace Froxlor\UI\Callbacks;
use Froxlor\Settings;
/** /**
* This file is part of the Froxlor project. * This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors). * Copyright (c) 2010 the Froxlor Team (see authors).
@@ -30,7 +32,7 @@ class Number
return 'Unlimited'; return 'Unlimited';
} }
return round($data / 1024, 3) . ' MB'; return round($data / 1024, Settings::Get('panel.decimal_places')) . ' MB';
} }
/** /**
@@ -45,6 +47,6 @@ class Number
return 'Unlimited'; return 'Unlimited';
} }
return round($data / (1024 * 1024), 3) . ' MB'; return round($data / (1024 * 1024), Settings::Get('panel.decimal_places')) . ' MB';
} }
} }