Add independent per-machine monitoring

Show separate resource histories for each machine in All Systems, configure the primary tray icon independently with optional per-machine icons, and display network IN/OUT as distinct traces. Migrate legacy monitor and tray selections while preserving saved preferences.
This commit is contained in:
2026-11-26 07:13:02 -06:00
parent 7628161f07
commit 5b2251c8f2
24 changed files with 1092 additions and 249 deletions

View File

@@ -328,10 +328,10 @@ class LinuxParser:
selected("disk", key, key, disk_metrics(read, write, reads, writes,
min(100, active / 10) if active is not None else None),
not self.target.disks or key in self.target.disks)
for key, physical, state, speed, row in (row for row in sections["net"] if len(row) == 5):
for key, physical, state, speed, row, *identity in (row for row in sections["net"] if len(row) in (5, 6)):
v = integers(row, 16)
if v:
receive, transmit = counters("net:" + key, (v[0], v[8]))
receive, transmit = counters(("net", key, state, *identity), (v[0], v[8]))
link = num(speed)
up = state == "up" if state in ("up", "down", "lowerlayerdown", "dormant") else None
link = link if link and link > 0 and up else None