1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/examples
Egor Makrushin f70b7c9772 Explicitly convert type to double to avoid losing precision
Division between integers will also be integer.
Thus, to preserve fractional part explicitly
convert first operand to double.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 28d54aab05 ("examples: Introduce domtop")
Signed-off-by: Egor Makrushin <emakrushin@astralinux.ru>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2024-01-24 10:21:23 +01:00
..
c Explicitly convert type to double to avoid losing precision 2024-01-24 10:21:23 +01:00
polkit meson: examples: build and install example files 2020-08-03 09:27:06 +02:00
sh meson: examples: build and install example files 2020-08-03 09:27:06 +02:00
systemtap Fix some typos 2023-03-09 14:09:16 +01:00
xml examples: testdriver: Add a nested inline <volume> example 2022-10-19 16:40:36 -04:00
meson.build meson: examples: build and install example files 2020-08-03 09:27:06 +02:00