1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Improvement: Battery state on Linux

This commit is contained in:
liyiheng 2018-06-04 14:57:05 +08:00
parent c3111c20fc
commit fc445cf2e7

View File

@ -6,7 +6,7 @@ package power
// "AC Power" or "Battery Power"
func powerSource() string {
switch batteryState {
case "charging":
case "charging", "fully-charged":
return "AC Power"
case "discharging":
return "Battery Power"