From: Ian Jackson Date: Wed, 16 Sep 2009 23:32:38 +0000 (+0100) Subject: Fix up so hold status report still works if no capacity limit X-Git-Tag: 5.0^2~138 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=commitdiff_plain;h=cbb3ac3d1f9bf4bc1833c84be27f8f32c6779374;ds=sidebyside Fix up so hold status report still works if no capacity limit --- diff --git a/yarrg/web/routetrade b/yarrg/web/routetrade index 4be17c6..ee1141a 100644 --- a/yarrg/web/routetrade +++ b/yarrg/web/routetrade @@ -462,7 +462,7 @@ foreach my $ci (0..($#islandids-1)) { my $applylimit= sub { my ($mv, $max, $f2val) = @_; - return unless defined $max; + $max= 1e9 unless defined $max; #print " DEFINED MAX $mv $max "; $cplex .= " ". sprintf("%-10s","${mv}_$ci:")." ".