From dfaecaf5034880e99df44e7ea7f13b8884da69fb Mon Sep 17 00:00:00 2001 From: fraoustin Date: Thu, 22 Aug 2013 10:46:02 +0200 Subject: [PATCH] Update glances.py --- glances/glances.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glances/glances.py b/glances/glances.py index 2d5617c6..364b0165 100644 --- a/glances/glances.py +++ b/glances/glances.py @@ -2516,13 +2516,13 @@ class glancesScreen: # Do you want it ? # If yes then tag_percpu = True if self.percpu_tag: - tag_percpu = screen_x > self.cpu_x + 79 + max(0,(len(percpu) - 3)) * 10 + tag_percpu = screen_x > self.cpu_x + 79 + (len(percpu) - 1) * 10 else: tag_percpu = False # compute x offset if tag_percpu: - offset_x = max(16,(len(percpu) - 3)) * 8 + offset_x = (len(percpu) - 1) * 8 elif tag_extendedcpu: offset_x = 16 else: