]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Poll for migration end every 50ms instead of 50us
authorJiri Denemark <jdenemar@redhat.com>
Thu, 22 Apr 2010 14:22:31 +0000 (16:22 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 22 Apr 2010 17:41:18 +0000 (19:41 +0200)
The comment in qemuDomainWaitForMigrationComplete says we are polling
every 50ms but the code sleeps only for 50us. This was already discussed
during review but apparently forgotten when the series was pushed.

src/qemu/qemu_driver.c

index 89cd291d3d7d86a0d8d61902bfb5213da9e2b1dd..4afed2f8db515db45475cfff73ed082699789115 100644 (file)
@@ -4524,7 +4524,7 @@ qemuDomainWaitForMigrationComplete(struct qemud_driver *driver, virDomainObjPtr
 
     while (priv->jobInfo.type == VIR_DOMAIN_JOB_UNBOUNDED) {
         /* Poll every 50ms for progress & to allow cancellation */
-        struct timespec ts = { .tv_sec = 0, .tv_nsec = 50 * 1000ull };
+        struct timespec ts = { .tv_sec = 0, .tv_nsec = 50 * 1000 * 1000ull };
         struct timeval now;
         int rc;