Merge pull request #245 from phreaker0/local-source-bwlimit-fix

fix typo to make local source bwlimit work
This commit is contained in:
Jim Salter 2018-07-26 16:16:04 -04:00 committed by GitHub
commit d1153a244f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -773,7 +773,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'};