migration: do floating-point division
commita694ee343d13159d214823294bbda08e4bdac685
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Jan 2015 11:12:27 +0000 (26 12:12 +0100)
committerJuan Quintela <quintela@redhat.com>
Wed, 2 Dec 2015 23:03:00 +0000 (3 00:03 +0100)
treed40df1928925500bf4c999471e5ae46f55db488e
parent4e39f57c0010b689ffa15658ff063006b45309db
migration: do floating-point division

Dividing integer expressions transferred_bytes and time_spent, and then converting
the integer quotient to type double. Any remainder, or fractional part of the
quotient, is ignored.  Fix this.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c