public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] Changing vis output ready for mainline...
Date: Tue, 13 Oct 2009 10:00:20 +0200	[thread overview]
Message-ID: <20091013080020.GF21060@lunn.ch> (raw)
In-Reply-To: <65D79C94-1997-418C-B773-54D0E79D5FA3@7degrees.co.za>

> Couple of questions:
> 
> * Would (<TQ_Value> / 255) be equivalent to the label value in the
> current vis output?


Here is the current kernel code:

#define TQ_MAX_VALUE 255
[snip]
    /* kernel has no printf-support for %f? it'd be better
     * to return this in float. */
    int_part = TQ_MAX_VALUE / entry->quality;
    frac_part = (1000 * TQ_MAX_VALUE / entry->quality) -
            (int_part * 1000);
[snip]
            seq_printf(seq,
                       "\t\"%s\" -> \"%s\" [label=\"%d.%d\"]\n",
                       from, to, int_part, frac_part);

  Andrew

  parent reply	other threads:[~2009-10-13  8:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12  8:11 [B.A.T.M.A.N.] Changing vis output ready for mainline Andrew Lunn
2009-10-12 11:59 ` Antoine van Gelder
2009-10-12 15:22   ` Andrew Lunn
2009-10-13  8:00   ` Andrew Lunn [this message]
2009-10-12 16:48 ` Marek Lindner
2009-10-12 21:36   ` elektra
2009-10-13  7:48   ` Andrew Lunn
2009-10-13  7:54 ` Andrew Lunn

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=20091013080020.GF21060@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=b.a.t.m.a.n@lists.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