CheckBattery

This commit is contained in:
cuu 2018-12-08 13:42:39 +08:00
parent a1a32ba626
commit 76e3da8be7

View File

@ -215,6 +215,9 @@ func GetUid(path string) int {
}
func CheckBattery() int {
if UI.FileExists(sysgo.Battery) == false {
return
}
batinfos,err := ReadLines(sysgo.Battery)
if err == nil {
for _,v := range batinfos {