chiark / gitweb /
Fix up so hold status report still works if no capacity limit
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 16 Sep 2009 23:32:38 +0000 (00:32 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 16 Sep 2009 23:32:38 +0000 (00:32 +0100)
yarrg/web/routetrade

index 4be17c6..ee1141a 100644 (file)
@@ -462,7 +462,7 @@ foreach my $ci (0..($#islandids-1)) {
 
        my $applylimit= sub {
                my ($mv, $max, $f2val) = @_;
 
        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:")." ".
 #print " DEFINED MAX $mv $max ";
                $cplex .= "
    ". sprintf("%-10s","${mv}_$ci:")." ".