New pocesses class for server

pull/140/head
Nicolas Hennion 2012-12-10 13:58:48 +01:00
parent 8262b26cf6
commit f4fdafdd2c
1 changed files with 4 additions and 2 deletions

View File

@ -941,14 +941,16 @@ class GlancesStatsServer(GlancesStats):
self._init_host()
self.all_stats["host"] = self.host
# Init the process list
self.process_list_refresh = True
self.glancesgrabprocesses = GlancesGrabProcesses()
def __update__(self, input_stats):
"""
Update the stats
"""
GlancesStats.__update__(self, input_stats)
self.process_list_refresh = True
self._process_list_refresh()
self.all_stats["cpu"] = self.cpu
self.all_stats["percpu"] = self.percpu