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]),
|
"size": int(parts[1]),
|
||||||
"alloc": int(parts[2]),
|
"alloc": int(parts[2]),
|
||||||
"free": int(parts[3]),
|
"free": int(parts[3]),
|
||||||
"fragmentation": parts[7],
|
"fragmentation": f"{parts[6]}%",
|
||||||
"capacity": parts[8],
|
"capacity": f"{parts[7]}%",
|
||||||
"health": parts[9]
|
"health": parts[9]
|
||||||
}
|
}
|
||||||
pools.append(pool)
|
pools.append(pool)
|
||||||
|
|||||||
Reference in New Issue
Block a user