From patchwork Mon Dec 1 18:57:02 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 5356 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by open-mesh.net (8.13.4/8.13.4/Debian-3sarge3) with SMTP id mB1J4TOW005408 for ; Mon, 1 Dec 2008 20:04:31 +0100 Received: (qmail invoked by alias); 01 Dec 2008 18:58:41 -0000 Received: from unknown (EHLO localhost) [89.246.207.63] by mail.gmx.net (mp053) with SMTP; 01 Dec 2008 19:58:41 +0100 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX1/jc+9A9BHjk1liJKxe2KXN0cXKWqsU+Wz2Ph27Ug su1CqtrXc+S2+E From: Sven Eckelmann To: b.a.t.m.a.n@open-mesh.net Date: Mon, 1 Dec 2008 19:57:02 +0100 Message-Id: <1228157822-29406-8-git-send-email-sven.eckelmann@gmx.de> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1228157822-29406-1-git-send-email-sven.eckelmann@gmx.de> References: <1228157822-29406-1-git-send-email-sven.eckelmann@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 Subject: [B.A.T.M.A.N.] [PATCH] Don't convert uint64_t to float when only comparing against 0 X-BeenThere: b.a.t.m.a.n@open-mesh.net X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 19:04:32 -0000 Signed-off-by: Sven Eckelmann --- batman/profile.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/batman/profile.c b/batman/profile.c index 55b0450..d9eaf13 100644 --- a/batman/profile.c +++ b/batman/profile.c @@ -65,7 +65,7 @@ void prof_print(void) { for ( index = 0; index < PROF_COUNT; index++ ) { - debug_output( 5, " %''30s: cpu time = %10.3f, calls = %''10i, avg time per call = %4.10f \n", prof_container[index].name, (float)prof_container[index].total_time/CLOCKS_PER_SEC, prof_container[index].calls, ( (float)prof_container[index].calls == 0 ? 0.0 : ( ( (float)prof_container[index].total_time/CLOCKS_PER_SEC ) / (float)prof_container[index].calls ) ) ); + debug_output( 5, " %''30s: cpu time = %10.3f, calls = %''10i, avg time per call = %4.10f \n", prof_container[index].name, (float)prof_container[index].total_time/CLOCKS_PER_SEC, prof_container[index].calls, ( prof_container[index].calls == 0 ? 0.0 : ( ( (float)prof_container[index].total_time/CLOCKS_PER_SEC ) / (float)prof_container[index].calls ) ) ); }