We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f036f36 commit dd318feCopy full SHA for dd318fe
cohort-core/src/main/kotlin/com/sksamuel/cohort/threads/ThreadStateHealthCheck.kt
@@ -18,9 +18,9 @@ class ThreadStateHealthCheck(
18
override suspend fun check(): HealthCheckResult {
19
val count = Thread.getAllStackTraces().keys.count { it.state == state }
20
return if (count <= maxCount) {
21
- HealthCheckResult.healthy("Thread count for state $state is below threshold [$count < $maxCount]")
+ HealthCheckResult.healthy("Thread count for state $state is below threshold [$count <= $maxCount]")
22
} else {
23
- HealthCheckResult.unhealthy("Thread count for state $state is above threshold [$count < $maxCount]", null)
+ HealthCheckResult.unhealthy("Thread count for state $state is above threshold [$count > $maxCount]", null)
24
}
25
26
0 commit comments