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