fix: keep unchanged skill rates stable at zero threshold

This commit is contained in:
Eneko Ruiz
2026-10-11 11:31:21 +02:00
parent 2d515e4fc2
commit 32bbddab1d
2 changed files with 33 additions and 0 deletions
+3
View File
@@ -121,6 +121,9 @@ function getFailureTrend(successRate7d, successRate30d, warnThreshold) {
}
const delta = roundRate(successRate7d - successRate30d);
if (delta === 0) {
return 'stable';
}
if (delta <= (-1 * warnThreshold)) {
return 'worsening';
}