fix rate calculation typo

This commit is contained in:
Xiaoxi Wang 2020-09-01 07:19:46 +00:00
parent 939f59d989
commit 47893c847b
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ Future<Void> refreshStorageServerCommitCost(RatekeeperData *self) {
TransactionCommitCostEstimation maxCost; TransactionCommitCostEstimation maxCost;
double maxRate = 0, maxBusyness = 0; double maxRate = 0, maxBusyness = 0;
for(const auto& [tag, cost] : it->value.tagCostEst) { for(const auto& [tag, cost] : it->value.tagCostEst) {
double rate = cost.getOpsSum() / elapsed; double rate = cost.getCostSum() / elapsed;
if(rate > maxRate) { if(rate > maxRate) {
busiestTag = tag; busiestTag = tag;
maxRate = rate; maxRate = rate;