diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-02-11 15:09:33 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-02-11 15:09:33 +0000 |
commit | fc1ec1acffd29d54c0c4266d30d38b2399d42f4f (patch) | |
tree | 38dd37dda993a32ca05e05102bb1838769613a12 /migration | |
parent | f16368459957603b8b3efa83353cc7e13ab6abd3 (diff) | |
parent | 1834ed3afc578b8dbf39838cfdf27d457771a334 (diff) | |
download | qemu-fc1ec1acffd29d54c0c4266d30d38b2399d42f4f.zip qemu-fc1ec1acffd29d54c0c4266d30d38b2399d42f4f.tar.gz qemu-fc1ec1acffd29d54c0c4266d30d38b2399d42f4f.tar.bz2 |
Merge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2016-02-11' into staging
trivial patches for 2016-02-11
# gpg: Signature made Thu 11 Feb 2016 12:16:04 GMT using RSA key ID A4C3D7DB
# gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
# gpg: aka "Michael Tokarev <mjt@corpit.ru>"
# gpg: aka "Michael Tokarev <mjt@debian.org>"
* remotes/mjt/tags/pull-trivial-patches-2016-02-11:
w32: include winsock2.h before windows.h
Adds keycode 86 to the hid_usage_keys translation table.
s390x: remove s390-zipl.rom
Passthru CCID card: QOMify
Emulated CCID card: QOMify
ES1370: QOMify
char: fix parameter name / type in BSD codepath
qmp-spec: fix index in doc
rdma: remove check on time_spent when calculating mbs
qemu-sockets: simplify error handling
cpu: cpu_save/cpu_load is no more
qom: Correct object_property_get_int() description
man: virtfs-proxy-helper: Rework awkward sentence
remove libtool support
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/migration.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/migration.c b/migration/migration.c index 82604d2..a64cfcd 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1691,8 +1691,8 @@ static void *migration_thread(void *opaque) double bandwidth = (double)transferred_bytes / time_spent; max_size = bandwidth * migrate_max_downtime() / 1000000; - s->mbps = time_spent ? (((double) transferred_bytes * 8.0) / - ((double) time_spent / 1000.0)) / 1000.0 / 1000.0 : -1; + s->mbps = (((double) transferred_bytes * 8.0) / + ((double) time_spent / 1000.0)) / 1000.0 / 1000.0; trace_migrate_transferred(transferred_bytes, time_spent, bandwidth, max_size); |