chiark / gitweb /
Fix stupid optimisation bug (typoed variable name)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 24 Aug 2009 10:59:18 +0000 (11:59 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 24 Aug 2009 10:59:18 +0000 (11:59 +0100)
yarrg/web/routetrade

index 496156b..58f21a1 100644 (file)
@@ -234,7 +234,7 @@ $addcols->({ DoReverse => 1 },
 
        $f->{ExpectedUnitProfit}=
                $f->{'dst_price'} * (1.0 - $loss_per_league) ** $f->{'dist'}
-               - $f->{'src_price'};
+               - $f->{'org_price'};
 
        my @uid= $f->{commodid};
        foreach my $od (qw(org dst)) {