[rrd-users] Text formatting
Tobias Oetiker
tobi at oetiker.ch
Fri Dec 3 17:29:11 CET 2010
Hi Simon,
Today Simon Hobson wrote:
> After reading the documentation on the web site, I'm still no wiser
> regarding text formatting !
>
> In general it seems that when I GPRINT a number of values across a
> line (eg in0ave, in-max, out-ave, out-max) then the line up in
> columns all nice and neat. If however I omit some of the columns and
> pad the preceding field with space, the following columns don't quite
> line up.
>
> The one I'm working on at the moment has me printing the four columns
> mentioned above for two lines, but on the third line I can sum the
> average rates, but have to leave the max rates blank*. The result is
> that the total outbound average is a few pixels out of line.
>
> All I really want is to just have everything in the legend done in
> monospaced text.
>
> * If you have average and total for two independent data sources,
> then you can add the averages to get total average traffic, but you
> can't add the maximums to get a meaningful number. Eg, I might have
> one router doing 1Mbps max, and the other doing 1Mbps max, but the
> total traffic could be anywhere between 1Mbps and 2Mbps max depending
> on how much overlap there is.
there were alignement issues with rrdtool a few releases back ...
it should work in 1.4.4 ...
you may want to look at using tabs also
cheers
tobi
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-users
mailing list