mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
chore(pre-commit): update pre-commit hooks
This commit is contained in:
parent
08f2131acd
commit
8ee9d5c430
16 changed files with 79 additions and 91 deletions
|
|
@ -604,9 +604,9 @@ class PrometheusExporter: # pylint: disable=too-many-instance-attributes
|
|||
username = process.username()
|
||||
alive_pids.add((pid, username))
|
||||
if (pid, username) not in host_snapshots: # noqa: SIM401,RUF100
|
||||
host_snapshot = host_snapshots[(pid, username)] = process.host_snapshot()
|
||||
host_snapshot = host_snapshots[pid, username] = process.host_snapshot()
|
||||
else:
|
||||
host_snapshot = host_snapshots[(pid, username)]
|
||||
host_snapshot = host_snapshots[pid, username]
|
||||
self.process_info.labels(
|
||||
hostname=self.hostname,
|
||||
index=index,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue