mirror of
https://github.com/affaan-m/ECC.git
synced 2026-12-03 13:47:05 +09:00
fix: keep unchanged skill rates stable at zero threshold
This commit is contained in:
1 parent
2d515e4fc2
commit
32bbddab1d
2 files changed
+33
No files matched your search
@@ -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';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user