Correct issue: Batterie stat is never updated

pull/354/head
Nicolargo 2014-05-26 14:02:50 +02:00
parent 1577ef6dff
commit 6db66e1276
1 changed files with 2 additions and 2 deletions

View File

@ -90,13 +90,13 @@ class glancesGrabBat:
self.bat = batinfo.batteries()
self.initok = True
self.bat_list = []
self.__update__()
self.update()
except Exception as e:
print "Warning: Can not grab batterie sensor. Missing BatInfo lib (%s)" % e
self.initok = False
def __update__(self):
def update(self):
"""
Update the stats
"""