this caused the webinterface to sort alphabetically instead of numerical
when sorting by image size

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 PVE/Storage/LVMPlugin.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm
index 60a58e5..a2b3feb 100644
--- a/PVE/Storage/LVMPlugin.pm
+++ b/PVE/Storage/LVMPlugin.pm
@@ -44,7 +44,7 @@ sub lvm_pv_info {
 
        $pvinfo = {
            pvname => $pvname,
-           size => $size,
+           size => int($size),
            vgname => $vgname,
            uuid => $uuid,
        };
@@ -136,7 +136,7 @@ sub lvm_list_volumes {
        my $lv_type = substr($lv_attr, 0, 1);
 
        my $d = {
-           lv_size => $lv_size,
+           lv_size => int($lv_size),
            lv_type => $lv_type,
        };
        $d->{pool_lv} = $pool_lv if $pool_lv;
-- 
2.11.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to