[pve-devel] applied: [PATCH container 3/3] fix #2611: use correct operation in get_bandwidth_limit

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Mar 3 11:46:41 CET 2020


On 2/25/20 4:32 PM, Stefan Reiter wrote:
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
>  src/PVE/LXC/Migrate.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm
> index 7df3c4c..6c1e9c1 100644
> --- a/src/PVE/LXC/Migrate.pm
> +++ b/src/PVE/LXC/Migrate.pm
> @@ -284,7 +284,7 @@ sub phase1 {
>  	my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
>  	push @{$self->{volumes}}, $volid;
>  	my $with_snapshots = $volhash->{$volid}->{snapshots};
> -	my $bwlimit = PVE::Storage::get_bandwidth_limit('migrate', [$sid], $opts->{bwlimit});
> +	my $bwlimit = PVE::Storage::get_bandwidth_limit('migration', [$sid], $opts->{bwlimit});
>  	# JSONSchema and get_bandwidth_limit use kbps - storage_migrate bps
>  	$bwlimit = $bwlimit * 1024 if defined($bwlimit);
>  
> 

applied, thanks!




More information about the pve-devel mailing list