From: Ian Jackson Date: Sun, 9 Mar 2014 19:47:09 +0000 (+0000) Subject: fix output reporting again X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=matchsticks-search.git;a=commitdiff_plain;h=e31fe684a1818601734a35571800c97079fb613d fix output reporting again --- diff --git a/main.c b/main.c index d923704..a57bd72 100644 --- a/main.c +++ b/main.c @@ -713,7 +713,7 @@ static void report(void) { continue; a[x][y] = min + glp_get_col_prim(best_prob, i); } - printf("min fragment %g", min); + printf("min fragment %g [%s]\n", min, VERSION); for (i = 0; i < n; i++) { for (j = 0; j < m; j++) { if (a[i][j]) @@ -724,9 +724,8 @@ static void report(void) { printf("\n"); } } else { - printf(" none better than %9.3f ", best); + printf(" none better than %9.3f [%s]\n", best, VERSION); } - printf(" [%s]\n", VERSION); if (ferror(stdout) || fclose(stdout)) { perror("stdout"); exit(-1); } }