fix ac bug

This commit is contained in:
petrucci4prez 2018-08-05 18:08:52 -04:00
parent a6c2b72dc6
commit e2ae757850
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ cr_static = nil
-- create some useful functions
--
local using_ac = function()
return Util.read_file('/sys/class/power_supply/AC/online') == '1'
return Util.read_file('/sys/class/power_supply/AC/online', nil, '*n') == 1
end
local LASTLOG_CMD = 'tail -1 /var/log/pacman.log'