Displaying 1 result from an estimated 1 matches for "prior_tv".
Did you mean:
prior_mi
2011 Aug 13
1
[Bug 8375] New: rsync with bandwidth limit sometimes expend extra time
...possible to
discover the solution of the problem.
The next lines show the modifications needed in io.c file to resolve the
problem.
$ diff -u io.c io.c-MOSER
--- io.c 2010-06-30 13:17:26.000000000 -0300
+++ io.c-MOSER 2011-08-12 22:29:41.000000000 -0300
@@ -1402,7 +1402,7 @@
if (prior_tv.tv_sec) {
elapsed_usec = (start_tv.tv_sec - prior_tv.tv_sec) * ONE_SEC
+ (start_tv.tv_usec - prior_tv.tv_usec);
- total_written -= elapsed_usec * bwlimit / (ONE_SEC/1024);
+ total_written -= ((long long)((long long)elapsed_use...