chiark / gitweb /
fix output reporting again
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 19:47:09 +0000 (19:47 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 19:47:09 +0000 (19:47 +0000)
main.c

diff --git a/main.c b/main.c
index d923704f3962c805984567e957e1b02bbcfb2a7d..a57bd7231a60248d0b9b81c1df24600c12c26d6e 100644 (file)
--- 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); }
 }