mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
chore: hide extra text in bar chart if N/A
This commit is contained in:
parent
14a95c22cf
commit
e435cf5300
1 changed files with 2 additions and 2 deletions
|
|
@ -486,7 +486,7 @@ class DevicePanel(BasePanel): # pylint: disable=too-many-instance-attributes
|
|||
prefix,
|
||||
utilization,
|
||||
width=width,
|
||||
extra_text=extra_text,
|
||||
extra_text=extra_text if 'N/A' not in extra_text else '',
|
||||
swap_text=not extra_text.endswith('MHz'),
|
||||
extra_blank=' ',
|
||||
)
|
||||
|
|
@ -665,7 +665,7 @@ class DevicePanel(BasePanel): # pylint: disable=too-many-instance-attributes
|
|||
prefix,
|
||||
utilization,
|
||||
width=width,
|
||||
extra_text=extra_text,
|
||||
extra_text=extra_text if 'N/A' not in extra_text else '',
|
||||
swap_text=not extra_text.endswith('MHz'),
|
||||
extra_blank=' ',
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue