Skip to content

Commit

Permalink
Merge pull request #616 from cgalibern/fix-om-pool-status-vg-0k
Browse files Browse the repository at this point in the history
fix-om-pool-status-vg-0k
  • Loading branch information
cvaroqui committed May 30, 2023
2 parents c758e29 + 2281285 commit 210b7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opensvc/drivers/pool/vg/linux.py
Expand Up @@ -43,8 +43,8 @@ def pool_status(self, usage=True):
if ret != 0:
return data
l = out.splitlines()[-1].split()
data["free"] = int(l[1].split(".")[0])
data["size"] = int(l[0].split(".")[0])
data["free"] = int(l[1].split(".")[0].split("k")[0])
data["size"] = int(l[0].split(".")[0].split("k")[0])
data["used"] = data["size"] - data["free"]
return data

0 comments on commit 210b7b4

Please sign in to comment.