summary refs log tree commit diff stats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorWei Wang <wei.w.wang@intel.com>2020-06-17 13:13:05 -0700
committerPeter Maydell <peter.maydell@linaro.org>2020-06-18 10:26:02 +0100
commit92271402177bb02930113a853f64952d8689b0c0 (patch)
treee9feaf1f5d6ed0c5d58d8e3e502e17efb7494c79 /hw/net/virtio-net.c
parent4066288694c3bdd175df813cad675a3b5191956b (diff)
downloadfocaccia-qemu-92271402177bb02930113a853f64952d8689b0c0.tar.gz
focaccia-qemu-92271402177bb02930113a853f64952d8689b0c0.zip
migration: fix xbzrle encoding rate calculation
It's reported an error of implicit conversion from "unsigned long" to
"double" when compiling with Clang 10. Simply make the encoding rate 0
when the encoded_size is 0.

Fixes: e460a4b1a4
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200617201309.1640952-3-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions