From: "Linus Lüssing" <linus.luessing@web.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] Minor change in vis.c
Date: Fri, 26 Mar 2010 07:34:06 +0100 [thread overview]
Message-ID: <20100326063406.GA3835@Linus-Debian> (raw)
In-Reply-To: <20100325225807.GA10755@Linus-Debian>
[-- Attachment #1: Type: text/plain, Size: 780 bytes --]
On Thu, Mar 25, 2010 at 11:58:07PM +0100, Linus Lüssing wrote:
> Hmm, in the frac_part, wouldn't that thing be rounded to 3 digits
> max anyway because of "(_1000_ * TQ_MAX_VALUE / tq) ..."? So, is
> it really necessary to limit this value with %02d again? Or should
> we change this as it is not such an obvious part maybe?
Argh, sorry, wrong again.... Are you talking about the issue with
missing leading 0s here? TQ-values like
> > 42 6 95
> > 255 1 3
would of course wrongly become 6.95 instead of 6.095 and 1.3
instead of 1.003... So yes, %03 seems to be what we're looking for.
> >
> > So it looks like we need a field width of 3, not 2.
> >
> > BTW: Is a TQ == 0 possible? batctl does not prevent the / 0 from
> > happening.
> >
> > Andrew
> >
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2010-03-26 6:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 22:28 [B.A.T.M.A.N.] Minor change in vis.c Nathan Wharton
2010-03-23 6:32 ` Andrew Lunn
2010-03-25 22:58 ` Linus Lüssing
2010-03-26 6:34 ` Linus Lüssing [this message]
2010-03-25 23:08 ` Linus Lüssing
2010-04-04 22:21 ` 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=20100326063406.GA3835@Linus-Debian \
--to=linus.luessing@web.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/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