mirror of https://github.com/nicolargo/glances
Correct issue: Batterie stat is never updated
parent
1577ef6dff
commit
6db66e1276
|
@ -90,13 +90,13 @@ class glancesGrabBat:
|
||||||
self.bat = batinfo.batteries()
|
self.bat = batinfo.batteries()
|
||||||
self.initok = True
|
self.initok = True
|
||||||
self.bat_list = []
|
self.bat_list = []
|
||||||
self.__update__()
|
self.update()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print "Warning: Can not grab batterie sensor. Missing BatInfo lib (%s)" % e
|
print "Warning: Can not grab batterie sensor. Missing BatInfo lib (%s)" % e
|
||||||
self.initok = False
|
self.initok = False
|
||||||
|
|
||||||
|
|
||||||
def __update__(self):
|
def update(self):
|
||||||
"""
|
"""
|
||||||
Update the stats
|
Update the stats
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue