[pve-devel] [PATCH common] cpuset: fix short_string

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Nov 17 11:24:19 CET 2016


don't drop the next current cpu after finishing a range
---
 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 753b3cd..7293d9b 100644
--- a/src/PVE/CpuSet.pm
+++ b/src/PVE/CpuSet.pm
@@ -165,7 +165,7 @@ sub short_string {
 	} else {
 	    $res .= ',' if length($res);
 	    $res .= "$last-$next";
-	    $last = $next = undef;
+	    $last = $next = $cpu;
 	}
     }
 
-- 
2.1.4





More information about the pve-devel mailing list