Commit 1e973051 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Juan Quintela
Browse files

migration: fix off-by-one in buffered_rate_limit


Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
Reviewed-by: default avatarReviewed-by: Eric Blake <eblake@redhat.com>
parent 25242635
......@@ -632,7 +632,7 @@ static int buffered_rate_limit(void *opaque)
return ret;
}
if (s->bytes_xfer > s->xfer_limit) {
if (s->bytes_xfer >= s->xfer_limit) {
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment