Skip to content

Commit

Permalink
migration: fix off-by-one in buffered_rate_limit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini authored and Juan Quintela committed Jan 17, 2013
1 parent 2524263 commit 1e97305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migration.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1e97305

Please sign in to comment.