From 2fef7961f1703a87479fc900444b73bfe494f44e Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Wed, 28 Sep 2022 15:18:43 +0800 Subject: [PATCH] chore(gui/metrics): update y ticks Signed-off-by: Xuehai Pan --- nvitop/gui/screens/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvitop/gui/screens/metrics.py b/nvitop/gui/screens/metrics.py index 408686a..0e988cf 100644 --- a/nvitop/gui/screens/metrics.py +++ b/nvitop/gui/screens/metrics.py @@ -64,7 +64,7 @@ def get_yticks(history, y_offset): # pylint: disable=too-many-branches,too-many ticks = [(h2, p2)] else: ticks = [(h2, p2)] - if p2 % 2 == 0 and p2 // 2 in p2h and p2h[p2 // 2] >= 3: + if p2 % 2 == 0: p1 = p2 // 2 h1 = int(p2h_f(p1)) p3 = 3 * p1