migration: fix off-by-one in buffered_rate_limit

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:30:39 +01:00 committed by Juan Quintela
parent 25242635ac
commit 1e973051b9

View File

@ -632,7 +632,7 @@ static int buffered_rate_limit(void *opaque)
return ret; return ret;
} }
if (s->bytes_xfer > s->xfer_limit) { if (s->bytes_xfer >= s->xfer_limit) {
return 1; return 1;
} }