From 3276ebe915a34abf34cf9639e83c85b8adac5245 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 8 Apr 2016 01:37:05 +0100 Subject: [PATCH] query_routesearch: set default for MinProfit --- yarrg/web/query_routesearch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2