Index: work/gpstroke/find_line_indep.c =================================================================== --- work/gpstroke/find_line_indep.c (revision 7406) +++ work/gpstroke/find_line_indep.c (revision 7407) @@ -258,7 +258,7 @@ int main(int argc, char *argv[]) { - int n; + int n, last_best = -1; common_init(argc, argv); @@ -271,8 +271,10 @@ } #endif gp_iterate(&pop); - if ((pop.pop_cnt % 50) == 0) + if (((pop.pop_cnt % 50) == 0) && (pop.indiv[0].fitness != last_best)) { gp_dump(stdout, &pop, 1); + last_best = pop.indiv[0].fitness; + } } pnm_save(ref, DUMPDIR "ref.pnm"); free(black);