We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12caba2 commit 3170a18Copy full SHA for 3170a18
ydb/library/actors/helpers/pool_stats_collector.h
@@ -362,7 +362,7 @@ class TStatsCollectingActor : public TActorBootstrapped<TStatsCollectingActor> {
362
double seconds = UsageTimer.PassedReset();
363
364
// TODO[serxa]: It doesn't account for contention. Use 1 - parkedTicksDelta / seconds / numThreads KIKIMR-11916
365
- const double currentThreadCount = poolStats.CurrentThreadCount;
+ const double currentThreadCount = poolStats.PotentialMaxThreadCount;
366
const double elapsed = NHPTimer::GetSeconds(stats.ElapsedTicks);
367
const double currentUsage = currentThreadCount > 0 ? ((elapsed - LastElapsedSeconds) / seconds / currentThreadCount) : 0;
368
LastElapsedSeconds = elapsed;
0 commit comments