Fix: zpool list Spalten-Indizes für Capacity/Fragmentation

CAP und FRAG wurden um eine Spalte verschoben gelesen (DEDUP statt CAP,
CAP statt FRAG). Korrekt: FRAG=parts[6], CAP=parts[7]. Prozentzeichen
ergänzt, da -p die Werte ohne % liefert.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 17:04:36 +02:00
parent 4e4c0321c9
commit b12dfe64e4
+2 -2
View File
@@ -118,8 +118,8 @@ class ZFSRunner:
"size": int(parts[1]),
"alloc": int(parts[2]),
"free": int(parts[3]),
"fragmentation": parts[7],
"capacity": parts[8],
"fragmentation": f"{parts[6]}%",
"capacity": f"{parts[7]}%",
"health": parts[9]
}
pools.append(pool)