From a3f38a644c46613646b7aaa6eee83cede9042248 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 16 May 2017 14:53:54 +0200 Subject: [PATCH] fix #1379: return size as number instead of string this caused the webinterface to sort alphabetically instead of numerical when sorting by image size Signed-off-by: Dominik Csapak --- 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.39.2