chiark / gitweb /
WIP routesearch; summary stratification output table shows 100s and 10s
[ypp-sc-tools.db-live.git] / yarrg / rsmain.c
index 0e43d5d..2fc2bdf 100644 (file)
@@ -83,13 +83,13 @@ int main(int argc, const char **argv) {
        for (midisle=0; midisle<islandtablesz; midisle++) {
          PotentialResult *result= strat_finisle[midisle];
          if (!result) {
-           fprintf(stderr,"|     ");
+           fprintf(stderr,"|       ");
          } else {
-           if (result->absolute < 1000) fprintf(stderr,"| <");
-           else fprintf(stderr,"|%2d",(int)(result->absolute / 1000));
+           if (result->absolute < 100) fprintf(stderr,"|  .");
+           else fprintf(stderr,"|%3d",(int)(result->absolute / 100));
            fprintf(stderr," ");
-           if (result->perleague < 100) fprintf(stderr," <");
-           else fprintf(stderr,"%2d",(int)(result->perleague / 100));
+           if (result->perleague < 10) fprintf(stderr,"  .");
+           else fprintf(stderr,"%3d",(int)(result->perleague / 10));
          }
        }
        fprintf(stderr,"\n");