From: Sven Eckelmann <sven.eckelmann@gmx.de>
To: b.a.t.m.a.n@open-mesh.net
Subject: [B.A.T.M.A.N.] [PATCH] Don't convert uint64_t to float when only comparing against 0
Date: Mon, 1 Dec 2008 19:57:02 +0100 [thread overview]
Message-ID: <1228157822-29406-8-git-send-email-sven.eckelmann@gmx.de> (raw)
In-Reply-To: <1228157822-29406-1-git-send-email-sven.eckelmann@gmx.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
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 ) ) );
}
--
1.6.0.4
next prev parent reply other threads:[~2008-12-01 18:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 18:56 [B.A.T.M.A.N.] Intel CC warning smashing Sven Eckelmann
2008-12-01 18:56 ` [B.A.T.M.A.N.] [PATCH] Correct parameter in declaration of use_gateway_module Sven Eckelmann
2008-12-01 19:05 ` [B.A.T.M.A.N.] " Sven Eckelmann
2008-12-01 19:14 ` [B.A.T.M.A.N.] [PATCHv2] Use ansi-style declaration for parameterless functions Sven Eckelmann
2008-12-01 19:14 ` [B.A.T.M.A.N.] [PATCHv2] Remove unused parameter of use_gateway_module Sven Eckelmann
2008-12-01 18:56 ` [B.A.T.M.A.N.] [PATCH] Remove unused variable debug_level_info in posix/posix.c Sven Eckelmann
2008-12-01 18:56 ` [B.A.T.M.A.N.] [PATCH] Use declaration of vis_if from batman.h Sven Eckelmann
2008-12-01 18:56 ` [B.A.T.M.A.N.] [PATCH] Respect (un)signess of parameter in printf format strings Sven Eckelmann
2008-12-01 18:57 ` [B.A.T.M.A.N.] [PATCH] Mark function which are only declared locally as static Sven Eckelmann
2008-12-01 18:57 ` [B.A.T.M.A.N.] [PATCH] Remove unused functions isDuplicate and isBntog Sven Eckelmann
2008-12-01 18:57 ` Sven Eckelmann [this message]
2008-12-01 20:11 ` [B.A.T.M.A.N.] [PATCH] Don't convert new_hna_len from int16_t to int and back to int16_t Sven Eckelmann
2008-12-01 20:48 ` [B.A.T.M.A.N.] [PATCH] Don't truncate file descriptor in use_kernel_module Sven Eckelmann
2008-12-01 21:12 ` [B.A.T.M.A.N.] Intel CC warning smashing Sven Eckelmann
2008-12-01 21:52 ` Simon Wunderlich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1228157822-29406-8-git-send-email-sven.eckelmann@gmx.de \
--to=sven.eckelmann@gmx.de \
--cc=b.a.t.m.a.n@open-mesh.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).