Skip to content

Commit

Permalink
Merge branch 'b2.1' of https://github.com/opensvc/opensvc into dns
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Jun 5, 2023
2 parents ddf3f88 + 210b7b4 commit 3bb0e89
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 3bb0e89

Please sign in to comment.