use XFER_LIMIT_RATIO consistently

commit 5b4e1eb769

missed this use.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>

Reviewed-by: Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Paolo Bonzini 2012-12-20 11:31:03 +01:00 committed by Juan Quintela
parent 9c339485f0
commit f65a874756

View File

@ -650,7 +650,7 @@ static int64_t buffered_set_rate_limit(void *opaque, int64_t new_rate)
new_rate = SIZE_MAX;
}
s->xfer_limit = new_rate / 10;
s->xfer_limit = new_rate / XFER_LIMIT_RATIO;
out:
return s->xfer_limit;