From: Ian Jackson Date: Fri, 8 Apr 2016 00:37:05 +0000 (+0100) Subject: query_routesearch: set default for MinProfit X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=commitdiff_plain;h=3276ebe915a34abf34cf9639e83c85b8adac5245;ds=sidebyside query_routesearch: set default for MinProfit --- diff --git a/yarrg/web/query_routesearch b/yarrg/web/query_routesearch index 87e9d33..478b622 100644 --- a/yarrg/web/query_routesearch +++ b/yarrg/web/query_routesearch @@ -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;