[pve-devel] applied: [PATCH common] fix #5529: cgroup: correctly handle change_cpu_quota without a quota

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jul 22 19:08:11 CEST 2024


Am 09/07/2024 um 11:09 schrieb Wolfgang Bumiller:
> The function can be called with
> - neither quota nor period
> - only a period (quota will be 'max')
> - both
> 
> $quota was therefore defaulted to 'max' and the check for whether
> values were provided should use $period instead of $quota.
> Also move the defaulting-assignment into the condition for clarity.
> 
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
>  src/PVE/CGroup.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
>

applied, thanks!




More information about the pve-devel mailing list