mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 18:45:17 +00:00
feat(status): persist cat visibility preference
- Add loadCatHidden/saveCatHidden functions - Save preference to ~/.config/mole/status_prefs - Load preference on startup
This commit is contained in:
@@ -134,15 +134,16 @@ func calculateHealthScore(cpu CPUStatus, mem MemoryStatus, disks []DiskStatus, d
|
||||
|
||||
// Build message.
|
||||
var msg string
|
||||
if score >= 90 {
|
||||
switch {
|
||||
case score >= 90:
|
||||
msg = "Excellent"
|
||||
} else if score >= 75 {
|
||||
case score >= 75:
|
||||
msg = "Good"
|
||||
} else if score >= 60 {
|
||||
case score >= 60:
|
||||
msg = "Fair"
|
||||
} else if score >= 40 {
|
||||
case score >= 40:
|
||||
msg = "Poor"
|
||||
} else {
|
||||
default:
|
||||
msg = "Critical"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user