From 5aa2a703aefa20e7b7c2d5abf7117c45333a848a Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Tue, 25 Feb 2020 16:32:02 +0100 Subject: [PATCH] fix #2611: use correct operation in get_bandwidth_limit Signed-off-by: Stefan Reiter --- 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); -- 2.39.2