rem: if ((percent == 100) && (last != 0)) {
add: if ((percent == 100) && (done == 0)) {
context: static void update_progress_no_tty (int percent, double etime, char *hdr){  static int last = 0;  int cnt = (percent>>1)*2;  if (hdr) {    fprintf (stderr, "\n%s | ", hdr);    last = 0;  }  else {    while (cnt > last) {      fprintf (stderr, "#");      cnt -=  2;    }  }  if ((percent == 100) && (last != 0)) {    fprintf (stderr, " | 100%% %0.2fs\n\n", etime);    last = 0;  }  else    last = (percent>>1)*2;    /* Make last a multiple of 2. */}