fix rate calculation typo
This commit is contained in:
parent
939f59d989
commit
47893c847b
|
@ -871,7 +871,7 @@ Future<Void> refreshStorageServerCommitCost(RatekeeperData *self) {
|
|||
TransactionCommitCostEstimation maxCost;
|
||||
double maxRate = 0, maxBusyness = 0;
|
||||
for(const auto& [tag, cost] : it->value.tagCostEst) {
|
||||
double rate = cost.getOpsSum() / elapsed;
|
||||
double rate = cost.getCostSum() / elapsed;
|
||||
if(rate > maxRate) {
|
||||
busiestTag = tag;
|
||||
maxRate = rate;
|
||||
|
|
Loading…
Reference in New Issue