fix rate calculation typo
This commit is contained in:
parent
939f59d989
commit
47893c847b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue