Displaying 1 result from an estimated 1 matches for "num_untransferred_files".
Did you mean:
num_transferred_files
2004 Jan 13
3
Progress reporting: N more to check
...f(&start_time, now);
double rate = diff ? (double) (ofs-start_ofs) * 1000.0 / diff / 1024.0 : 0;
@@ -72,10 +74,16 @@ static void rprint_progress(OFF_T ofs, O
remain_m = (int) (remain / 60.0) % 60;
remain_h = (int) (remain / 3600.0);
+ if (is_last) {
+ int todo = stats.num_files - stats.num_untransferred_files
+ - stats.num_transferred_files;
+ snprintf(eol, sizeof eol, " (#%d; %d more to check)\n",
+ stats.num_transferred_files, todo);
+ } else
+ strcpy(eol, "\r");
rprintf(FINFO, "%12.0f %3d%% %7.2f%s %4d:%02d:%02d%s",
(double) ofs, pct, rate, units,
- remain_...