[06/14] migration: fix off-by-one in buffered_rate_limit

Submitted by Juan Quintela on Jan. 15, 2013, 11:18 a.m.

Details

Message ID 1358248702-14278-7-git-send-email-quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Jan. 15, 2013, 11:18 a.m.
From: Paolo Bonzini <pbonzini@redhat.com>

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/migration.c b/migration.c
index 5513dde..380f3cb 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;
     }