libvirt/examples/c
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
..
admin Fix couple of comment typos 2022-11-30 12:18:11 +01:00
domain Explicitly convert type to double to avoid losing precision 2024-01-24 10:21:23 +01:00
misc examples: Fix printf format string in event-test.c 2023-10-20 10:22:34 +02:00
meson.build meson: examples: build and install example files 2020-08-03 09:27:06 +02:00