Skip to content

Commit

Permalink
Don't do download if testing upload, don't do upload if testing download
Browse files Browse the repository at this point in the history
  • Loading branch information
mad-ady committed Jul 5, 2018
1 parent 1328a01 commit 6391ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speedtest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ sub pingone ($){
my $server = $target->{vars}{server} || undef; #if server is not provided, use the default one recommended by speedtest.
my $measurement = $target->{vars}{measurement} || "download"; #record download speeds if nothing is returned
my $extra = $target->{vars}{extraargs} || ""; #append extra arguments if neded
my $query = "$self->{properties}{binary} ".((defined($server))?"--server $server":"")." --simple $extra 2>&1";
my $query = "$self->{properties}{binary} ".((defined($server))?"--server $server":"")." ".(($measurement -eq "download")?"--no-upload":"--no-download")." --simple $extra 2>&1";

my @times;

Expand Down

0 comments on commit 6391ddd

Please sign in to comment.