chiark / gitweb /
Fix buyer/seller who were swapped in --arbitrage output
[ypp-sc-tools.db-test.git] / yarrg / commod-results-processor
index f9fdedfa5f6c0c5419ccf826b10db106aa9cfaea..d322c1c7b682638d14c861b573386e97d81cc279 100755 (executable)
@@ -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) = @_;
@@ -449,6 +449,8 @@ sub main__uploadyarrg () {
 
     my $respcontent= yarrgpostform($ua, \%o);
     $respcontent =~ m/^OK\b/ or die "$respcontent ?";
+    $respcontent =~ s/^/ /mg;
+    print $respcontent,"\n";
 }
 
 sub main__uploadpctb () {