CI: Adjust package update status colour thresholds

This commit is contained in:
TEC 2021-04-01 23:09:17 +08:00
parent 8eb01a4af0
commit 49279558a0
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 4 additions and 4 deletions

View File

@ -11,10 +11,10 @@
(defun gen-status-img (upgradeable total)
(let ((colour (pcase (/ (float upgradeable) total)
((pred (= 0.0)) "brightgreen")
((pred (> 0.05)) "green")
((pred (> 0.15)) "yellowgreen")
((pred (> 0.3)) "yellow")
((pred (> 0.6)) "orange")
((pred (> 0.15)) "green")
((pred (> 0.25)) "yellowgreen")
((pred (> 0.4)) "yellow")
((pred (> 0.8)) "orange")
(_ "red")))
(text (if (= 0 upgradeable)
(format "all %s up to date" total)