Skip to content

Commit dd318fe

Browse files
committedJul 8, 2023
Fixed message on ThreadStateHealthCheck
1 parent f036f36 commit dd318fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎cohort-core/src/main/kotlin/com/sksamuel/cohort/threads/ThreadStateHealthCheck.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class ThreadStateHealthCheck(
1818
override suspend fun check(): HealthCheckResult {
1919
val count = Thread.getAllStackTraces().keys.count { it.state == state }
2020
return if (count <= maxCount) {
21-
HealthCheckResult.healthy("Thread count for state $state is below threshold [$count < $maxCount]")
21+
HealthCheckResult.healthy("Thread count for state $state is below threshold [$count <= $maxCount]")
2222
} else {
23-
HealthCheckResult.unhealthy("Thread count for state $state is above threshold [$count < $maxCount]", null)
23+
HealthCheckResult.unhealthy("Thread count for state $state is above threshold [$count > $maxCount]", null)
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)
Please sign in to comment.