chiark / gitweb /
WIP routesearch; show values in poe
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 9 Oct 2009 19:43:55 +0000 (20:43 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 9 Oct 2009 19:43:55 +0000 (20:43 +0100)
yarrg/rsmain.c

index a498022..551018f 100644 (file)
@@ -73,7 +73,7 @@ int main(int argc, const char **argv) {
       if (!strat_resultsix) continue;
       fprintf(stderr,"  ");
       for (midarch=0; midarch<narches; midarch++) {
-       fprintf(stderr,"| mid %d ",midarch);
+       fprintf(stderr,"|   mid %d  ",midarch);
       }
       fprintf(stderr,"\n");
       for (finarch=0; finarch<narches; finarch++) {
@@ -83,13 +83,11 @@ int main(int argc, const char **argv) {
        for (midarch=0; midarch<narches; midarch++) {
          PotentialResult *result= strat_finarch[midarch];
          if (!result) {
-           fprintf(stderr,"|       ");
+           fprintf(stderr,"|          ");
          } else {
-           if (result->absolute < 100) fprintf(stderr,"|  .");
-           else fprintf(stderr,"|%3d",(int)(result->absolute / 100));
+           fprintf(stderr,"|%5d",(int)(result->absolute));
            fprintf(stderr," ");
-           if (result->perleague < 10) fprintf(stderr,"  .");
-           else fprintf(stderr,"%3d",(int)(result->perleague / 10));
+           fprintf(stderr,"%4d",(int)(result->perleague));
          }
        }
        fprintf(stderr,"\n");