X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=cprogs%2Frcopy-repeatedly.c;h=6468e80cfadfa7c273333b391ce2981a3c2481ab;hp=01a72186330a31ee3f70b23d006be70fa0a09edc;hb=a14cb06ac8fff27e407a39993b2b20f9a7109f7c;hpb=d4e42bf295490da6b6f4ab8d5249b158d774d450 diff --git a/cprogs/rcopy-repeatedly.c b/cprogs/rcopy-repeatedly.c index 01a7218..6468e80 100644 --- a/cprogs/rcopy-repeatedly.c +++ b/cprogs/rcopy-repeatedly.c @@ -262,12 +262,9 @@ static void bandlimit_sendend(uint64_t bytes, int *interval_usec_update) { static void copyfile(FILE *sf, copyfile_die_fn *sdie, const char *sxi, FILE *df, copyfile_die_fn *ddie, const char *dxi, uint64_t lstart, int amsender) { - struct timespec ts_last; int now, r; uint64_t l=lstart, done=0; - ts_last= ts_sendstart; - while (l>0) { now= l < sizeof(mainbuf) ? l : sizeof(mainbuf); if (now > txblocksz) now= txblocksz;