Skip to content

Commit 67c94f4

Browse files
committed
Fixed diff
1 parent 32146c7 commit 67c94f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ydb/core/tx/conveyor/service/service.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ void TWorkersPool::ReleaseWorker(const ui32 workerIdx) {
4646

4747
void TWorkersPool::ChangeAmountCPULimit(const double delta) {
4848
AmountCPULimit += delta;
49+
if (std::abs(AmountCPULimit) < Eps) {
50+
AmountCPULimit = 0;
51+
}
4952
AFL_VERIFY(AmountCPULimit >= 0);
5053
Counters.AmountCPULimit->Set(AmountCPULimit);
5154
Counters.ChangeCPULimitRate->Inc();

0 commit comments

Comments
 (0)