Change the way core are displayed

pull/2064/head
nicolargo 2022-05-29 18:45:34 +02:00
parent d2bbcfed8d
commit 7c6d402036
1 changed files with 4 additions and 2 deletions

View File

@ -170,11 +170,13 @@ class Plugin(GlancesPlugin):
# Build the string message # Build the string message
# Header # Header
msg = '{:5}'.format('LOAD') msg = '{:4}'.format('LOAD')
ret.append(self.curse_add_line(msg, "TITLE")) 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 # Core number
if 'cpucore' in self.stats and self.stats['cpucore'] > 0: 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)) ret.append(self.curse_add_line(msg))
# Loop over 1min, 5min and 15min load # Loop over 1min, 5min and 15min load
for load_time in ['1', '5', '15']: for load_time in ['1', '5', '15']: