Merge pull request #1532 from mynameisfiber/feature/1288-multiple-battery

Fixes bug in multi-battery support
This commit is contained in:
Nikolai Aleksandrovich Pavlov 2016-02-21 21:32:05 +03:00
commit 8e5bc2538b
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'):