diff --git a/modules/power/battery.go b/modules/power/battery.go index f0ea53ba..5df33242 100644 --- a/modules/power/battery.go +++ b/modules/power/battery.go @@ -95,7 +95,7 @@ func (battery *Battery) formatRemaining(data string) string { r, _ := regexp.Compile(TimeRegExp) result := r.FindString(data) - if result == "" { + if result == "" || result == "0:00" { result = "∞" }