fix(hub): E2E repairs of 066 to 084 and unclipped stream code boxes
Real bugs: the 084 limit bar wrapped at 390 px and dropped the hardware chart; the 066 footer rule shrank the mic below 44 px; the board's Running and Prune labels pushed the Tasks head onto two rows; a closed code box cut long commands off instead of scrolling. Resources reads disk use as df does (total = used + available) and gives every hardware kind its own tone. Stale specs follow 067, 070, 072 and 078 decisions. 🎯 Fix: 80 % 💥 Break: 8 % 💸 Tokens: - ⏱️ Velocity: - 🛡️ Security: 100 % 🏆 Score: 74 🚦 Gate: ⛔ fix 80 % < 90, break 8 % > 5 (E2E rerun after 085 to 094, operator word 2026-11-27) Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b0ee62dd0b
commit
ca97776b4d
18 files changed
+67
-29
No files matched your search
@@ -190,18 +190,21 @@ def parse_df(text: str) -> list[dict]:
|
||||
"""Returns:
|
||||
One {mount, used, total} in bytes per block device in the output of
|
||||
df -P -k, at the first mount df lists for it; loop devices and
|
||||
filesystems without a device are left out.
|
||||
filesystems without a device are left out. total is used plus
|
||||
available, the size normal writes can fill, so used / total is df's
|
||||
Capacity; the 1K-blocks column also counts the blocks reserved for
|
||||
root and would understate the fill level.
|
||||
"""
|
||||
found, seen = [], set()
|
||||
for line in text.splitlines()[1:]:
|
||||
parts = line.split(None, 5)
|
||||
if len(parts) < 6 or not parts[0].startswith("/dev/") or parts[0].startswith("/dev/loop") or parts[0] in seen:
|
||||
continue
|
||||
total, used = number(parts[1]), number(parts[2])
|
||||
if total is None or used is None:
|
||||
used, available = number(parts[2]), number(parts[3])
|
||||
if used is None or available is None:
|
||||
continue
|
||||
seen.add(parts[0])
|
||||
found.append({"mount": parts[5], "used": int(used) * KIB, "total": int(total) * KIB})
|
||||
found.append({"mount": parts[5], "used": int(used) * KIB, "total": int(used + available) * KIB})
|
||||
return found
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user