refactoring

This commit is contained in:
Roland Gruber 2025-07-30 19:18:29 +02:00
parent a3871c9d31
commit 2b728c0f7d

View file

@ -448,7 +448,7 @@ class quota extends baseModule {
return (int) $quotaInput; return (int) $quotaInput;
} }
if (str_ends_with($quotaInput, 'K')) { if (str_ends_with($quotaInput, 'K')) {
return (int) ((int) substr($quotaInput, 0, -1)); return (int) substr($quotaInput, 0, -1);
} }
if (str_ends_with($quotaInput, 'M')) { if (str_ends_with($quotaInput, 'M')) {
return 1024 * ((int) substr($quotaInput, 0, -1)); return 1024 * ((int) substr($quotaInput, 0, -1));