]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/CpuSet.pm
cpuset: fix short_string
[pve-common.git] / src / PVE / CpuSet.pm
index 753b3cdec4cac5edc64a251ef9f464593cb034bb..7293d9bcfe4cacfab58f0457907402c1c5433613 100644 (file)
@@ -165,7 +165,7 @@ sub short_string {
        } else {
            $res .= ',' if length($res);
            $res .= "$last-$next";
-           $last = $next = undef;
+           $last = $next = $cpu;
        }
     }