mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-01 14:04:50 +03:00
Correct issue: Batterie stat is never updated
This commit is contained in:
parent
1577ef6dff
commit
6db66e1276
@ -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
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user