Re: [Qemu-devel] [PATCH v2 1/3] throttle: Make NANOSECONDS_PER_SECOND an integer

2014-09-15 Thread Markus Armbruster
Benoît Canet writes: > We will want to reuse this define in the future by making it common to > multiples > QEMU modules. > It would be safer that this define be an integer so we avoid stranges float > rounding errors. > Do this conversion. > > Signed-off-by: Benoît Canet > --- > include/qemu/

Re: [Qemu-devel] [PATCH v2 1/3] throttle: Make NANOSECONDS_PER_SECOND an integer

2014-09-08 Thread Eric Blake
On 09/08/2014 06:18 AM, Benoît Canet wrote: > We will want to reuse this define in the future by making it common to > multiples s/multiples/multiple/ > QEMU modules. > It would be safer that this define be an integer so we avoid stranges float s/stranges/strange/ > rounding errors. > Do this

[Qemu-devel] [PATCH v2 1/3] throttle: Make NANOSECONDS_PER_SECOND an integer

2014-09-08 Thread Benoît Canet
We will want to reuse this define in the future by making it common to multiples QEMU modules. It would be safer that this define be an integer so we avoid stranges float rounding errors. Do this conversion. Signed-off-by: Benoît Canet --- include/qemu/throttle.h | 2 +- util/throttle.c