rem: if (do_progress && !am_server) { if (ofs > last_ofs + 1000) { int pct = (int)((100.0*ofs)/size); rprintf(FINFO,"%.0f (%d%%)\r", (double)ofs, pct); last_ofs = ofs; }
add: gettimeofday(&now, NULL);  if (!start_time.tv_sec && !start_time.tv_usec) { start_time.tv_sec  = now.tv_sec; start_time.tv_usec = now.tv_usec; start_ofs          = ofs; }  if (do_progress && !am_server && ofs > last_ofs + 1000 && msdiff(&print_time, &now) > 250) { rprint_progress(ofs, size, &now, False); last_ofs = ofs; print_time.tv_sec  = now.tv_sec; print_time.tv_usec = now.tv_usec;
context: void show_progress(OFF_T ofs, OFF_T size){	extern int do_progress, am_server;	if (do_progress && !am_server) {		if (ofs > last_ofs + 1000) {			int pct = (int)((100.0*ofs)/size);			rprintf(FINFO,"%.0f (%d%%)\r", (double)ofs, pct);			last_ofs = ofs;		}	}}