cpuset: fix short_string

don't drop the next current cpu after finishing a range
This commit is contained in:
Wolfgang Bumiller 2016-11-17 11:24:19 +01:00 committed by Fabian Grünbichler
parent 457d3cd6f2
commit 9c07db40e0

View File

@ -165,7 +165,7 @@ sub short_string {
} else { } else {
$res .= ',' if length($res); $res .= ',' if length($res);
$res .= "$last-$next"; $res .= "$last-$next";
$last = $next = undef; $last = $next = $cpu;
} }
} }