search for: remain_h

Displaying 4 results from an estimated 4 matches for "remain_h".

Did you mean: remain_m
2004 Jan 13
3
Progress reporting: N more to check
...256]; int pct = (ofs == size) ? 100 : (int)((100.0*ofs)/size); unsigned long diff = msdiff(&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"); rp...
2007 Aug 01
0
[PATCH] prevent negative "time left" values with --progress when file grows
...gress.c --- progress.c 10 Jul 2007 13:55:49 -0000 1.23 +++ progress.c 1 Aug 2007 12:43:33 -0000 @@ -104,9 +104,16 @@ stats.num_files); } else strlcpy(eol, "\r", sizeof eol); - rprintf(FCLIENT, "%12s %3d%% %7.2f%s %4d:%02d:%02d%s", - human_num(ofs), pct, rate, units, - remain_h, remain_m, remain_s, eol); + if (remain < 0) + /* file size increased on sending side during xfer */ + /* so prevent negative times like 0:-1:-49 */ + rprintf(FCLIENT, "%12s %3d%% %7.2f%s ??:??:??%s", + human_num(ofs), pct, rate, units, + eol); + else + rprintf(FCLIEN...
2004 Feb 27
2
patch: better progress meter
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20040227/923b87ee/PGP.bin
2002 Mar 14
2
PATCH: better progress reporting
.../ 1024.0 : 0; const char *units; - double remain = rate ? (double) (size-ofs) / rate / 1000.0: 0.0; + double remain = is_last + ? (double) diff / 1000.0 + : rate ? (double) (size-ofs) / rate / 1000.0 : 0.0; int remain_h, remain_m, remain_s; if (rate > 1024*1024) {