diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-03-21 13:55:18 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-03-25 14:09:50 +0100 |
commit | cc8c9d6c6f28e4e376a6561a2a31524fd069bc2d (patch) | |
tree | c61eeb89deb7dd3af6c4dd35c158279729bb8335 /kvm-all.c | |
parent | dc6fb73d219472e011d93867f5e7eebfffde0319 (diff) |
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>
Diffstat (limited to 'kvm-all.c')
0 files changed, 0 insertions, 0 deletions