Received: from eggs.gnu.org ([2001:4830:134:3::10]:40860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWoPg-0000B9-Fd for qemu-devel@nongnu.org; Wed, 24 Sep 2014 11:23:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWoPb-0005PF-DQ for qemu-devel@nongnu.org; Wed, 24 Sep 2014 11:23:28 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:56178 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWoPb-0005NX-24 for qemu-devel@nongnu.org; Wed, 24 Sep 2014 11:23:23 -0400 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Wed, 24 Sep 2014 17:21:03 +0200 Message-Id: <1411572065-18072-2-git-send-email-benoit.canet@nodalink.com> In-Reply-To: <1411572065-18072-1-git-send-email-benoit.canet@nodalink.com> References: <1411572065-18072-1-git-send-email-benoit.canet@nodalink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 1/3] throttle: Make NANOSECONDS_PER_SECOND an integer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, armbru@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , peter.maydell@linaro.org We will want to reuse this define in the future by making it common to mu= ltiple QEMU modules. It would be safer that this define be an integer so we avoid strange floa= t rounding errors. Do this conversion. Signed-off-by: Beno=C3=AEt Canet --- include/qemu/throttle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/throttle.h b/include/qemu/throttle.h index b890613..8f9e611 100644 --- a/include/qemu/throttle.h +++ b/include/qemu/throttle.h @@ -27,7 +27,7 @@ #include "qemu-common.h" #include "qemu/timer.h" =20 -#define NANOSECONDS_PER_SECOND 1000000000.0 +#define NANOSECONDS_PER_SECOND 1000000000 =20 typedef enum { THROTTLE_BPS_TOTAL, --=20 2.1.1