mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 16:38:49 +00:00
migrate: fix memory migration start time
The variable is only ever used for calculating the average speed of memory migration, but it was set before disk mirroring already. But the disk sizes are not included in the calculation, resulting in (very) wrong values. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
6629f976ac
commit
9938d24df2
@ -929,8 +929,6 @@ sub phase2 {
|
||||
$self->log('info', "start remote tunnel");
|
||||
$self->start_remote_tunnel($raddr, $rport, $ruri, $unix_socket_info);
|
||||
|
||||
my $start = time();
|
||||
|
||||
if ($self->{storage_migration}) {
|
||||
$self->{storage_migration_jobs} = {};
|
||||
$self->log('info', "starting storage migration");
|
||||
@ -1025,6 +1023,8 @@ sub phase2 {
|
||||
|
||||
}
|
||||
|
||||
my $start = time();
|
||||
|
||||
$self->log('info', "start migrate command to $ruri");
|
||||
eval {
|
||||
mon_cmd($vmid, "migrate", uri => $ruri);
|
||||
|
Loading…
Reference in New Issue
Block a user