Paolo Bonzini cc8c9d6c6f mirror: fix throttling delay calculation
The throttling delay calculation was using an inaccurate sector count to
calculate the time to sleep.  This broke rate-limiting for the block
mirror job.

Move the delay calculation into mirror_iteration() where we know how
many sectors were transferred.  This lets us calculate an accurate delay
time.

Reported-by: Joaquim Barrera <jbarrera@ac.upc.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-03-25 14:09:50 +01:00
..
2014-02-21 21:02:24 +01:00
2013-09-12 10:12:47 +02:00
2013-12-20 16:26:16 +01:00
2014-02-21 21:02:24 +01:00
2014-02-21 21:02:23 +01:00
2013-09-12 10:12:47 +02:00
2014-03-25 14:09:50 +01:00
2014-02-25 10:50:11 +00:00
2014-02-21 21:02:22 +01:00
2014-03-19 09:39:41 +01:00
2014-02-21 21:02:24 +01:00
2014-02-17 11:57:23 -05:00
2014-03-25 14:09:50 +01:00
2014-02-17 11:57:23 -05:00
2014-03-25 14:09:50 +01:00
2013-09-12 10:12:48 +02:00
2014-03-25 14:09:50 +01:00
2014-03-25 14:09:50 +01:00
2014-02-21 21:02:23 +01:00
2014-02-21 21:02:24 +01:00
2014-02-21 21:02:23 +01:00