Javadoc
Computes sleep delay needed based on the block that just got copied. we
copy using a burst mode, that is we let the copy proceed in full
throttle. Once a copy is done, we compute how many bytes have been
transferred and try to average it over the user specified bandwidth. In
other words, This code implements a poor man's token bucket algorithm for
traffic shaping.