summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkruall <[email protected]>2023-09-06 15:57:03 +0300
committerkruall <[email protected]>2023-09-06 16:27:37 +0300
commit6cf2e0df3b3ab37c820a6b4f42ba7542a6af06f0 (patch)
tree5ccdb0f97f2be5cc7c49c368ab2191d69fa3ed1b
parent292bb7c827ff4feb53f89cf8541fe996b5af733a (diff)
Fix io pool's metric, KIKIMR-18214
-rw-r--r--ydb/core/sys_view/service/ext_counters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/sys_view/service/ext_counters.cpp b/ydb/core/sys_view/service/ext_counters.cpp
index d8bf4d95b88..020a3a223df 100644
--- a/ydb/core/sys_view/service/ext_counters.cpp
+++ b/ydb/core/sys_view/service/ext_counters.cpp
@@ -90,7 +90,7 @@ private:
double usedCore = PoolElapsedMicrosec[i]->Val() / 10000.;
CpuUsedCorePercents[i]->Set(usedCore);
}
- if (PoolCurrentThreadCount[i]) {
+ if (PoolCurrentThreadCount[i] && PoolCurrentThreadCount[i]->Val()) {
double limitCore = PoolCurrentThreadCount[i]->Val() * 100;
CpuLimitCorePercents[i]->Set(limitCore);
} else {