chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae2758e
)
query_routesearch: set default for MinProfit
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 8 Apr 2016 00:37:05 +0000
(
01:37
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 8 Apr 2016 00:39:53 +0000
(
01:39
+0100)
yarrg/web/query_routesearch
patch
|
blob
|
history
diff --git
a/yarrg/web/query_routesearch
b/yarrg/web/query_routesearch
index 87e9d33649bbbb0846f2efc08325f7c0d46d33c1..478b622d8dcef39acb7933de2231b0886e6539de 100644
(file)
--- 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;