Commit 0d24eed9 authored by Philip Carns's avatar Philip Carns
Browse files

bug fix to offset logic near bulk boundary

parent bceb3a68
......@@ -627,7 +627,7 @@ static void bw_worker(void *_arg)
my_off = *arg->cur_off;
(*arg->cur_off) += g_opts.xfer_size;
if(*arg->cur_off > g_buffer_size)
if(((*arg->cur_off)+g_opts.xfer_size) > g_buffer_size)
*arg->cur_off = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment