This commit is contained in:
cuu
2018-12-08 13:48:12 +08:00
parent 76e3da8be7
commit f93a4efce1
2 changed files with 5 additions and 4 deletions

View File

@@ -215,8 +215,8 @@ func GetUid(path string) int {
}
func CheckBattery() int {
if UI.FileExists(sysgo.Battery) == false {
return
if FileExists(sysgo.Battery) == false {
return -1
}
batinfos,err := ReadLines(sysgo.Battery)
if err == nil {