Switch float -> double when calculating CPU time in dominfo command to avoid loss of precision

This commit is contained in:
Daniel P. Berrange
2006-06-13 19:08:40 +00:00
parent 2bfd45c942
commit e85fa600e7
2 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
Tue Jun 13 14:06:01 EDT 2006 Daniel P. Berrange <berrange@redhat.com>
* src/virsh.c: use 'double' instead of 'float' when calculating
'CPU time' field for dominfo command, to ensure no unneccessary
loss of precision converting from nanoseconds to seconds.
Tue Jun 13 18:35:22 EDT 2006 Daniel Veillard <veillard@redhat.com>
* src/libvirt.c src/xen_internal.c src/xend_internal.c