fix typo to make local source bwlimit work

This commit is contained in:
Christoph Klaffl 2018-07-26 21:46:50 +02:00
parent 2224866da6
commit f5508a2403
No known key found for this signature in database
GPG Key ID: FC1C525C2A47CC28
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ sub buildsynccmd {
$synccmd = "$sendcmd |";
# avoid confusion - accept either source-bwlimit or target-bwlimit as the bandwidth limiting option here
my $bwlimit = '';
if (length $args{'bwlimit'}) {
if (length $args{'source-bwlimit'}) {
$bwlimit = $args{'source-bwlimit'};
} elsif (length $args{'target-bwlimit'}) {
$bwlimit = $args{'target-bwlimit'};