diff options
author | Evgeniy Ivanov <eivanov89@ydb.tech> | 2025-07-18 19:17:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-18 17:17:20 +0000 |
commit | cd7e8fe5d9ba1ec2b0ba1f08895171b68b2869db (patch) | |
tree | cb2c844a87e9fd7c16b966f6c6b8e516fa34148d | |
parent | 42b10247153cb362028d8d951caf6a5dab306c16 (diff) | |
download | ydb-cd7e8fe5d9ba1ec2b0ba1f08895171b68b2869db.tar.gz |
Fix efficiency calculation (#17333) (#21376)
-rw-r--r-- | ydb/library/workload/tpcc/runner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/library/workload/tpcc/runner.cpp b/ydb/library/workload/tpcc/runner.cpp index 4497f538669..46624944e1d 100644 --- a/ydb/library/workload/tpcc/runner.cpp +++ b/ydb/library/workload/tpcc/runner.cpp @@ -560,7 +560,7 @@ void TPCCRunner::CalculateStatusData(Clock::time_point now, TRunDisplayData& dat // there are two errors: rounding + approximation, we might overshoot // 100% efficiency very slightly because of errors and it's OK to "round down" - maxPossibleTpmc = Config.WarehouseCount * MAX_TPMC_PER_WAREHOUSE * 60 / currentPhaseElapsed.count(); + maxPossibleTpmc = Config.WarehouseCount * MAX_TPMC_PER_WAREHOUSE; data.StatusData.Tpmc = std::min(maxPossibleTpmc, tpmc); } |