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

Wolfgang Bumiller w.bumiller at proxmox.com
Thu May 18 08:54:15 CEST 2017


---
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





More information about the pve-devel mailing list