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 <d.csapak@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
7ba34faa6e
commit
a3f38a644c
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user