[rrd-users] Re: Printing tabs onto graphs (feature request)

Alex van den Bogaerdt alex at ergens.op.het.net
Thu Jan 1 15:28:36 MET 2004


On Thu, Jan 01, 2004 at 04:24:35AM -0500, Michael Reynolds wrote:

> In:       Current: 0.00B/s  Average: 0.00B/s  Max: 0.00B/s
> Out:      Current: 0.00B/s  Average: 0.00B/s  Max: 0.00B/s
> ICMP:     Current: 0.00B/s  Average: 0.00B/s  Max: 0.00B/s
> Invalid:  Current: 0.00B/s  Average: 0.00B/s  Max: 0.00B/s
> 
> Unfortunately, the numbers aren't always the same, or even have the same 
> length in characters.  I'd like to see a \t or something to that effect 
> added in, similar to \j, \c, etc, but with a difference.  The existing 
> 'modifiers' cause the line to end.  The \t should just act as a tab, to 
> align to a specific amount of pixels, depending on the end alignment 
> choice (left/right).  I would make the changes myself, but I do not know 
> the rrdtool code enough to trust myself to change it.  If any other 
> user, or Tobi himself, can do this, I'd greatly appreciate it, and I'd 
> bet there would be others who would find this 'feature' useful.

If I understand what you're trying to ask, you're looking for:

In:       Current: 120.53MB/s  Average:  20.12MB/s  Max: 125.00MB/s
Out:      Current:   1.00 B/s  Average:   3.00 B/s  Max:  10.00MB/s

and so on.  In other words, you need alignment of the text.

So, why aren't you using the formatter string to specify a fixed
length for the numbers?

Alex
-- 
begin of my sig
http://www.googlism.com/index.htm?ism=alex+van+den+bogaerdt&type=1
This message was produced without any <iframe tags

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list