[pve-devel] applied: [PATCH common] fix #1388: cpuset: sort members numerically

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu May 18 09:09:28 CEST 2017


to master and cherry-picked into stable-4

On Thu, May 18, 2017 at 08:54:15AM +0200, Wolfgang Bumiller wrote:
> ---
> For: master, stable-4
> 
>  src/PVE/CpuSet.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/CpuSet.pm b/src/PVE/CpuSet.pm
> index eaa4e3c..92fd18f 100644
> --- a/src/PVE/CpuSet.pm
> +++ b/src/PVE/CpuSet.pm
> @@ -106,7 +106,7 @@ sub has {
>  sub members {
>      my ($self) = @_;
>  
> -    return sort keys %{$self->{members}};
> +    return sort { $a <=> $b } keys %{$self->{members}};
>  }    
>  
>  sub size {
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list