Count garbage properly
This commit is contained in:
parent
0abb570bf9
commit
de3cdd3b1c
|
@ -20,12 +20,13 @@ $Global:SetupConfigPostprocessor = {
|
|||
|
||||
foreach ($partition in $partitionCreations) {
|
||||
$order = [int]$partition.SelectSingleNode("./ua:Order", $namespace).InnerText;
|
||||
$garbage += [int]$partition.SelectSingleNode("./ua:Size", $namespace).InnerText;
|
||||
$newOrder = $order;
|
||||
|
||||
if ($order -eq 2) {
|
||||
$newOrder--;
|
||||
} else {
|
||||
$garbage += [int]$partition.SelectSingleNode("./ua:Size", $namespace).InnerText;
|
||||
|
||||
if ($newOrder -lt 2) {
|
||||
$newOrder++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue