Message ID | 1444198846-5383-2-git-send-email-den@openvz.org |
---|---|
State | New |
Headers | show |
diff --git a/migration/migration.c b/migration/migration.c index b7de9b7..b710a2d 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1063,7 +1063,7 @@ static void *migration_thread(void *opaque) /* if we haven't sent anything, we don't want to recalculate 10000 is a small enough number for our purposes */ if (s->dirty_bytes_rate && transferred_bytes > 10000) { - s->expected_downtime = s->dirty_bytes_rate / bandwidth; + s->expected_downtime = pending_size / bandwidth; } qemu_file_reset_rate_limit(s->file);