mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
fix self._name_maxlen access in device panel
This commit is contained in:
parent
2d94ce1804
commit
4a6bf90811
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ class DevicePanel(BasePanel): # pylint: disable=too-many-instance-attributes
|
|||
self._snapshot_buffer: list[Snapshot] = []
|
||||
self._snapshots: list[Snapshot] = []
|
||||
self.snapshot_lock = threading.Lock()
|
||||
self._name_maxlen: int = 19 # default; updated after has_vram_temp is determined
|
||||
self.snapshots: list[Snapshot] = self.take_snapshots()
|
||||
self._snapshot_daemon = threading.Thread(
|
||||
name='device-snapshot-daemon',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue