Actually respect user’s choice of percentages

This commit is contained in:
Lucien Cartier-Tilet 2021-04-29 14:19:24 +02:00
parent a7017ac0e1
commit f6caf18f19
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -182,9 +182,9 @@ shortened name of the partitions with a long name."
(string-to-number percentage)
percentage)))
(cond
((> percentage eshell-info-banner--percentage-critical)
((>= percentage eshell-info-banner--percentage-critical)
'eshell-info-banner-critical-face)
((> percentage eshell-info-banner--percentage-warning)
((>= percentage eshell-info-banner--percentage-warning)
'eshell-info-banner-warning-face)
(t 'eshell-info-banner-normal-face))))