chiark / gitweb /
query_routesearch: set default for MinProfit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 8 Apr 2016 00:37:05 +0000 (01:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 8 Apr 2016 00:39:53 +0000 (01:39 +0100)
yarrg/web/query_routesearch

index 87e9d33..478b622 100644 (file)
@@ -181,7 +181,7 @@ foreach my $k (qw(MaxMass MaxVolume MaxCapital)) {
 }
 push @rsargs, defined $routeparams->{LossPerLeaguePct}
        ? $routeparams->{LossPerLeaguePct}*0.01 : 1e-9;
-push @rsargs, $routeparams->{MinProfit};
+push @rsargs, $routeparams->{MinProfit} // 0;
 push @rsargs, 'search',$maxdist, $maxcountea,$maxcountea;
 push @rsargs, $destspec;
 push @rsargs, @islandids;