Merge pull request #3719 from sfc-gh-xwang/master

fix rate calculation typo
This commit is contained in:
Trevor Clinkenbeard 2020-09-01 00:34:51 -07:00 committed by GitHub
commit 972b776a4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;