From 9c07db40e070caeefa4a67d5b9efacceada885db Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 17 Nov 2016 11:24:19 +0100 Subject: [PATCH] cpuset: fix short_string 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.39.2