Include loadqueuepeon size to compute disknormalized cost (#3826)

This commit is contained in:
Niketh Sabbineni 2017-01-06 14:30:23 -08:00 committed by cheddar
parent dddeae813a
commit 2aa8385fc0
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class DiskNormalizedCostBalancerStrategy extends CostBalancerStrategy
}
double normalizedCost = cost/nSegments;
double usageRatio = (double)server.getServer().getCurrSize()/(double)server.getServer().getMaxSize();
double usageRatio = (double) server.getSizeUsed() / (double) server.getServer().getMaxSize();
return normalizedCost*usageRatio;
}