From 82548118ec5aceab9ef8e0d38efb89855e66d764 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 25 Sep 2015 13:34:55 +0200 Subject: [PATCH] drbd: use correct unit for storage sizes --- PVE/Storage/DRBDPlugin.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/Storage/DRBDPlugin.pm b/PVE/Storage/DRBDPlugin.pm index d722c5d..b780829 100644 --- a/PVE/Storage/DRBDPlugin.pm +++ b/PVE/Storage/DRBDPlugin.pm @@ -268,9 +268,9 @@ sub status { my ($rc, $free_space, $total_space) = $hdl->cluster_free_query($redundancy); check_drbd_res($rc); - $avail = $free_space; - $total = $total_space; - $used = $total_space - $free_space; + $avail = $free_space*1024; + $total = $total_space*1024; + $used = $total - $avail; }; if (my $err = $@) {