Skip to content
Snippets Groups Projects
Commit 5390adec authored by Juan Quintela's avatar Juan Quintela
Browse files

migration: Use migrate_max_postcopy_bandwidth()

parent 1dfc4b9e
No related branches found
No related tags found
No related merge requests found
...@@ -3795,7 +3795,7 @@ void migrate_fd_connect(MigrationState *s, Error *error_in) ...@@ -3795,7 +3795,7 @@ void migrate_fd_connect(MigrationState *s, Error *error_in)
if (resume) { if (resume) {
/* This is a resumed migration */ /* This is a resumed migration */
rate_limit = s->parameters.max_postcopy_bandwidth / rate_limit = migrate_max_postcopy_bandwidth() /
XFER_LIMIT_RATIO; XFER_LIMIT_RATIO;
} else { } else {
/* This is a fresh new migration */ /* This is a fresh new migration */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment