Skip to content

Commit 69f5c77

Browse files
committed
poolmanager: fix typo
weghtedPools -> weightedPools Acked-by: Paul Millar Target: master Require-book: no Require-notes: no
1 parent 9023cea commit 69f5c77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/dcache/src/main/java/org/dcache/poolmanager/WRandomPartition.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ private WeightedPool[] toWeightedWritePoolsArray(Collection<PoolInfo> costInfos)
9898
totalFree += spaceToUse;
9999
}
100100

101-
WeightedPool[] weghtedPools = new WeightedPool[costInfos.size()];
101+
WeightedPool[] weightedPools = new WeightedPool[costInfos.size()];
102102
int i = 0;
103103
for (PoolInfo costInfo : costInfos) {
104104
long spaceToUse = costInfo.getCostInfo().getSpaceInfo().getFreeSpace()
105105
+ costInfo.getCostInfo().getSpaceInfo().getRemovableSpace();
106106

107-
weghtedPools[i] = new WeightedPool(costInfo, (double) spaceToUse / totalFree);
107+
weightedPools[i] = new WeightedPool(costInfo, (double) spaceToUse / totalFree);
108108
i++;
109109
}
110110

111-
Arrays.sort(weghtedPools, new CostComparator());
112-
return weghtedPools;
111+
Arrays.sort(weightedPools, new CostComparator());
112+
return weightedPools;
113113
}
114114

115115
private static class CostComparator implements Comparator<WeightedPool>

0 commit comments

Comments
 (0)