]> Git Repo - qemu.git/blobdiff - migration.c
configure: Create link to icon bitmap for out-of-tree builds
[qemu.git] / migration.c
index 6649e3a689543be27762e8349ed7355fb107ae0c..11725ae3fc00ca95be6f19d484ec847eb939e8ba 100644 (file)
@@ -738,6 +738,11 @@ static void *buffered_file_thread(void *opaque)
             DPRINTF("transferred %" PRIu64 " time_spent %" PRIu64
                     " bandwidth %g max_size %" PRId64 "\n",
                     transferred_bytes, time_spent, bandwidth, max_size);
+            /* 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->bytes_xfer = 0;
             sleep_time = 0;
This page took 0.019401 seconds and 4 git commands to generate.