From: Jiri Denemark Date: Thu, 22 Apr 2010 14:22:31 +0000 (+0200) Subject: Poll for migration end every 50ms instead of 50us X-Git-Tag: v0.8.1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c059485cf062bf1f9066237039b6e398a2fe33;p=thirdparty%2Flibvirt.git Poll for migration end every 50ms instead of 50us 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. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 89cd291d3d..4afed2f8db 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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;