mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
chore(gui/metrics): update y ticks
Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
parent
3a80c60687
commit
2fef7961f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue