This commit is contained in:
Leijurv 2018-11-24 12:53:09 -08:00
parent 8ece179912
commit 2a21a1ca18
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public abstract class QuantizedTaskPriorityAllocationCache extends QuantizedTask
Allocation alloc = new Allocation(amount);
List<IQuantizedParentTaskRelationship> children = childTasks();
if (children.size() < 2) {
return new Allocation(amount).distributeEqually(); // 0 or 1 cannot be anything but equal distribution
return alloc.distributeEqually(); // 0 or 1 cannot be anything but equal distribution
}
double[] costs = new double[children.size()];
for (int i = 0; i < costs.length; i++) {