From: Ian Jackson Date: Fri, 18 Sep 2009 19:48:57 +0000 (+0100) Subject: Fix buyer/seller who were swapped in --arbitrage output X-Git-Tag: 4.0~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=commitdiff_plain;h=0da2ddd243bf88c4961cf8a1deb8d174c18976c0 Fix buyer/seller who were swapped in --arbitrage output --- diff --git a/yarrg/commod-results-processor b/yarrg/commod-results-processor index bb0724d..d322c1c 100755 --- a/yarrg/commod-results-processor +++ b/yarrg/commod-results-processor @@ -129,8 +129,8 @@ sub main__arbitrage () { $info.= sprintf("%-13.13s| %-19.19s %4d| %-19.19s %4d|%3d x%3d =%3d\n", $commod, - $buys[0]{Stall},$buys[0]{Price}, $sells[0]{Stall},$sells[0]{Price}, + $buys[0]{Stall},$buys[0]{Price}, $qty, $pricediff, $tprofit); sub arb_subtract_qty (\@) { my ($verbs) = @_;