Revert "Patch unitary test / Thk to Simon aka Saimon"

This reverts commit 74a9c93530.
This commit is contained in:
Nicolas Hennion 2013-04-16 14:50:19 +02:00
parent fdb42e53b9
commit 470fe06951

View File

@ -142,9 +142,6 @@ except ImportError:
else:
csv_lib_tag = True
# create update times dict
last_update_times = {}
# Default tag
sensors_tag = False
hddtemp_tag = False
@ -923,7 +920,6 @@ class GlancesStats:
self.process_list_refresh = True
self.process_list_sortedby = ''
self.glancesgrabprocesses = GlancesGrabProcesses()
self.update()
def _init_host(self):
self.host = {}
@ -954,7 +950,7 @@ class GlancesStats:
else:
self.host['os_version'] = ""
def __update__(self):
def __update__(self, input_stats):
"""
Update the stats
"""
@ -1235,9 +1231,9 @@ class GlancesStats:
# Get the number of core (CPU) (Used to display load alerts)
self.core_number = psutil.NUM_CPUS
def update(self):
"Update the stats"
self.__update__()
def update(self, input_stats={}):
# Update the stats
self.__update__(input_stats)
def getSortedBy(self):
return self.process_list_sortedby
@ -3728,6 +3724,10 @@ def main():
global percpu_tag, fs_tag, diskio_tag, network_tag, network_bytepersec_tag
global sensors_tag, hddtemp_tag, process_tag
global refresh_time, client, server, server_port, server_ip
global last_update_times
# create update times dict
last_update_times = {}
# Set default tags
percpu_tag = False