filename bugfix
Filename reference in `/sys/` method for the battery segment referenced a non-existant file.
This commit is contained in:
parent
3fb4f55a06
commit
7e319f2ede
|
@ -77,8 +77,8 @@ def _fetch_battery_info(pl):
|
|||
pl.debug('Not using DBUS+UPower as no batteries were found')
|
||||
|
||||
if os.path.isdir('/sys/class/power_supply'):
|
||||
linux_energy_full_fmt = '/sys/class/power_supply/{0}/enery_full'
|
||||
linux_energy_fmt = '/sys/class/power_supply/{0}/enery'
|
||||
linux_energy_full_fmt = '/sys/class/power_supply/{0}/energy_full'
|
||||
linux_energy_fmt = '/sys/class/power_supply/{0}/energy_now'
|
||||
linux_status_fmt = '/sys/class/power_supply/{0}/status'
|
||||
devices = []
|
||||
for linux_supplier in os.listdir('/sys/class/power_supply'):
|
||||
|
|
Loading…
Reference in New Issue