File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/dcache/src/main/java/org/dcache/poolmanager Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -98,18 +98,18 @@ private WeightedPool[] toWeightedWritePoolsArray(Collection<PoolInfo> costInfos)
98
98
totalFree += spaceToUse ;
99
99
}
100
100
101
- WeightedPool [] weghtedPools = new WeightedPool [costInfos .size ()];
101
+ WeightedPool [] weightedPools = new WeightedPool [costInfos .size ()];
102
102
int i = 0 ;
103
103
for (PoolInfo costInfo : costInfos ) {
104
104
long spaceToUse = costInfo .getCostInfo ().getSpaceInfo ().getFreeSpace ()
105
105
+ costInfo .getCostInfo ().getSpaceInfo ().getRemovableSpace ();
106
106
107
- weghtedPools [i ] = new WeightedPool (costInfo , (double ) spaceToUse / totalFree );
107
+ weightedPools [i ] = new WeightedPool (costInfo , (double ) spaceToUse / totalFree );
108
108
i ++;
109
109
}
110
110
111
- Arrays .sort (weghtedPools , new CostComparator ());
112
- return weghtedPools ;
111
+ Arrays .sort (weightedPools , new CostComparator ());
112
+ return weightedPools ;
113
113
}
114
114
115
115
private static class CostComparator implements Comparator <WeightedPool >
You can’t perform that action at this time.
0 commit comments