From d0c45016fdc6d87ab77751579e29fae39848d8fc Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Mon, 8 Sep 2014 17:17:51 +0200 Subject: Optimise extended processes stats display for console --- glances/__init__.py | 2 +- glances/plugins/glances_processlist.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/glances/__init__.py b/glances/__init__.py index 597838c1..5711f9ed 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -20,7 +20,7 @@ """Init the Glances software.""" __appname__ = 'glances' -__version__ = '2.1_RC9' +__version__ = '2.1_RC10' __author__ = 'Nicolas Hennion ' __license__ = 'LGPL' diff --git a/glances/plugins/glances_processlist.py b/glances/plugins/glances_processlist.py index cf507f2f..692f51ee 100644 --- a/glances/plugins/glances_processlist.py +++ b/glances/plugins/glances_processlist.py @@ -248,7 +248,7 @@ class Plugin(GlancesPlugin): if p['cpu_affinity'] is not None: ret.append(self.curse_new_line()) msg = xpad + _('CPU affinity: ') + str(len(p['cpu_affinity'])) + _(' cores') - ret.append(self.curse_add_line(msg)) + ret.append(self.curse_add_line(msg, splittable=True)) # Second line is memory info if p['memory_info_ex'] is not None: ret.append(self.curse_new_line()) @@ -259,7 +259,7 @@ class Plugin(GlancesPlugin): msg += k + ' ' + self.auto_unit(v, low_precision=False) + ' ' if 'memory_swap' in p and p['memory_swap'] is not None: msg += _('swap ') + self.auto_unit(p['memory_swap'], low_precision=False) - ret.append(self.curse_add_line(msg)) + ret.append(self.curse_add_line(msg, splittable=True)) # Third line is for openned files/network sessions ret.append(self.curse_new_line()) msg = xpad + _('Openned: ') @@ -273,7 +273,7 @@ class Plugin(GlancesPlugin): msg += _('TCP ') + str(p['tcp']) + ' ' if p['udp'] is not None: msg += _('UDP ') + str(p['udp']) + ' ' - ret.append(self.curse_add_line(msg)) + ret.append(self.curse_add_line(msg, splittable=True)) # Fouth line is IO nice level (only Linux and Windows OS) if p['ionice'] is not None: ret.append(self.curse_new_line()) @@ -306,7 +306,7 @@ class Plugin(GlancesPlugin): # The higher the value, the lower the I/O priority of the process. if hasattr(p['ionice'], 'value') and p['ionice'].value != 0: msg += _(' (value %s/7)') % str(p['ionice'].value) - ret.append(self.curse_add_line(msg)) + ret.append(self.curse_add_line(msg, splittable=True)) # End of extended stats first = False -- cgit v1.2.3