From: Wolfgang Bumiller Date: Thu, 17 Nov 2016 10:24:19 +0000 (+0100) Subject: cpuset: fix short_string X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=9c07db40e070caeefa4a67d5b9efacceada885db cpuset: fix short_string don't drop the next current cpu after finishing a range --- 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; } }