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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user