diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-05-29 18:45:34 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-05-29 18:45:34 +0200 |
commit | 7c6d402036040b18410ef6ebb5b6e5d40482475f (patch) | |
tree | 3e5f14d2dd81eb1c276e9d01732588d65453d2b1 | |
parent | d2bbcfed8df9999e80291aecf326936916f19fbb (diff) |
Change the way core are displayed
-rw-r--r-- | glances/plugins/glances_load.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/glances/plugins/glances_load.py b/glances/plugins/glances_load.py index 1896fa18..20f57552 100644 --- a/glances/plugins/glances_load.py +++ b/glances/plugins/glances_load.py @@ -170,11 +170,13 @@ class Plugin(GlancesPlugin): # Build the string message # Header - msg = '{:5}'.format('LOAD') + msg = '{:4}'.format('LOAD') ret.append(self.curse_add_line(msg, "TITLE")) + msg = ' {:1}'.format(self.trend_msg(self.get_trend('min1'))) + ret.append(self.curse_add_line(msg)) # Core number if 'cpucore' in self.stats and self.stats['cpucore'] > 0: - msg = '{:3}-core'.format(int(self.stats['cpucore'])) + msg = '{:3}core'.format(int(self.stats['cpucore'])) ret.append(self.curse_add_line(msg)) # Loop over 1min, 5min and 15min load for load_time in ['1', '5', '15']: |