From a8c57b8f16ef296b9b7e273fb7a0197cc4a4f601 Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Wed, 12 Dec 2012 18:10:26 +0100 Subject: Update AUTHORS file --- AUTHORS | 7 ++++++- NEWS | 2 ++ glances/glances.py | 20 +++++++++++++++++--- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/AUTHORS b/AUTHORS index f199c1db..7f3c1857 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,5 +1,10 @@ Nicolas Hennion (aka) Nicolargo -http://www.nicolargo.com +http://blog.nicolargo.com +https://twitter.com/nicolargo +contact@nicolargo.com Alessio Sergi (aka) Al3hex https://twitter.com/al3hex + +Brandon Philips (aka) Philips +http://ifup.org/ diff --git a/NEWS b/NEWS index b23c4f3f..5c02fed2 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ Version 1.5.2 * Add sensors module (enable it with -e option) * Improve CPU stats (IO wait, Nice, IRQ) + * More stats in lower space (yes it is possible) + * Refactor processes list and count (lower CPU/MEM footprint) Version 1.5.1 ============= diff --git a/glances/glances.py b/glances/glances.py index 89f75287..e3143f55 100755 --- a/glances/glances.py +++ b/glances/glances.py @@ -827,15 +827,29 @@ class GlancesStats: self.fs = self.glancesgrabfs.get() # PROCESS + # TODO: Add IO rate -1 + #~ self.glancesgrabprocesses.update() + #~ process = self.glancesgrabprocesses.getlist() + #~ processcount = self.glancesgrabprocesses.getcount() + #~ if not hasattr(self, 'process_old'): + #~ self.processcount = {} + #~ self.process = [] + #~ self.process_old = process + #~ else: + #~ self.processcount = processcount + #~ self.process = process + #~ for proc in self.process: + #~ pass + #~ self.process_old = process self.glancesgrabprocesses.update() process = self.glancesgrabprocesses.getlist() processcount = self.glancesgrabprocesses.getcount() - if not hasattr(self, 'process'): - self.process = [] + if not hasattr(self, 'process'): self.processcount = {} + self.process = [] else: - self.process = process self.processcount = processcount + self.process = process # Initialiation of the running processes list # Data are refreshed every two cycle (refresh_time * 2) -- cgit v1.2.3