[rrd-users] Re: Text formatting.
Chris Josephes
cjoseph at mr.net
Thu Oct 7 16:06:20 MEST 1999
On Wed, 6 Oct 1999, steve rader wrote:
> > From: Chris Josephes
> > I'm trying to add information to the bottom of a RRD graph in the
> > format below.
> >
> > Incoming Max (.3lf) Average (.3lf) Current (.3lf)
> > Outgoing Max (.3lf) Average (.3lf) Current (.3lf)
>
> I've been meaning to investigate this for a while now... so I did
> but I don't have any good news.
>
> I tried this:
>
> <RRD::GRAPH ...
> AREA:in_bits#00FF00:"input "
> GPRINT:in_bits:MAX:"%3.2lf %sbits/sec max"
> GPRINT:in_bits:AVERAGE:"%3.2lf %sbits/sec ave"
> GPRINT:in_bits:LAST:"%3.2lf %sbits/sec last\n"
> LINE2:out_bits#0000FF:"output"
> GPRINT:out_bits:AVERAGE:"%3.2lf %sbits/sec ave"
> GPRINT:out_bits:MAX:"%3.2lf %sbits/sec max"
> GPRINT:out_bits:LAST:"%3.2lf %sbits/sec last\n">
>
> and found that "%3.2lf" did *not* pad the output with
> leading spaces as expected.
Hmmm, never tried to mix the gprint statements within the AREA/LINE
declarations. I'll give it a try and see what happens.
-- _______________
Chris Josephes __/ MRNet/Onvoy \
chrisj at mr.net __/ www.onvoy.com /
\________________/
--
* To unsubscribe from the rrd-users mailing list, send a message with the
subject: unsubscribe to rrd-users-request at list.ee.ethz.ch
More information about the rrd-users
mailing list