filename bugfix

Filename reference in `/sys/` method for the battery segment referenced
a non-existant file.
This commit is contained in:
Micha Gorelick 2016-02-21 00:19:17 -05:00
parent 3fb4f55a06
commit 7e319f2ede
1 changed files with 2 additions and 2 deletions

View File

@ -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'):