aboutsummaryrefslogtreecommitdiff
path: root/target-openrisc/helper.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-03-21 13:55:18 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2014-03-25 14:09:50 +0100
commitcc8c9d6c6f28e4e376a6561a2a31524fd069bc2d (patch)
treec61eeb89deb7dd3af6c4dd35c158279729bb8335 /target-openrisc/helper.h
parentdc6fb73d219472e011d93867f5e7eebfffde0319 (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 'target-openrisc/helper.h')
0 files changed, 0 insertions, 0 deletions