diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-20 11:30:39 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-01-17 13:54:16 +0100 |
commit | 1e973051b96bac5eef46393eec15b68796e7c7d3 (patch) | |
tree | 0bdd5d77385d91c31b00c89f6e88dbe611f5fc05 /migration.c | |
parent | 25242635acb0b803392ad5669b5624815af3fd07 (diff) |
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>
Diffstat (limited to 'migration.c')
-rw-r--r-- | migration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration.c b/migration.c index 5513dde18d..380f3cb618 100644 --- a/migration.c +++ b/migration.c @@ -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; } |