search for: one_sec

Displaying 1 result from an estimated 1 matches for "one_sec".

Did you mean: one_spec
2011 Aug 13
1
[Bug 8375] New: rsync with bandwidth limit sometimes expend extra time
...s 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_usec * bwlimit) / (ONE_SEC/1024)); if (total_written < 0)...