提交 1e973051 编写于 作者: P Paolo Bonzini 提交者: Juan Quintela

migration: fix off-by-one in buffered_rate_limit

Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: NJuan Quintela <quintela@redhat.com>
Reviewed-by: NReviewed-by: Eric Blake <eblake@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册