fix(host): clean progress when migrate complete

This commit is contained in:
ioito
2021-12-31 10:25:51 +08:00
parent 9b6278b5e0
commit 6bcb02f098
+1
View File
@@ -518,6 +518,7 @@ func (s *SKVMGuestInstance) onReceiveQMPEvent(event *monitor.Event) {
// migrating complete
s.migrateTask.migrateComplete()
}
hostutils.UpdateServerProgress(context.Background(), s.Id, 0.0, 0)
case event.Event == `"BLOCK_JOB_COMPLETED"`:
hostutils.UpdateServerProgress(context.Background(), s.Id, 0.0, 0)
}