[rrd-users] Aligning the gprint text

Chris Paalman CPaalman at cnc-inc.com
Tue Apr 3 00:20:54 MEST 2001

I have been able to generate a graph to show the following:

* Legend Maximum: 54321 Average: 8763 Current 15431
* Legend Maximum: 489732 Average: 32143 Current 38245


GPRINT:$def:MAX:Maximum: %4.2lf
GPRINT:$def:AVERAGE:Average: %4.2lf
GPRINT:$def:LAST:Current: %4.2lf\l

{repeat for each datasource in this graph}

The problem is that if the MAX and AVERAGE are different digits in length,
the text is not lined up evenly.  Is there a way to do this?

As a side note, does anyone have any further examples or documentattion on
the GPRINT and PRINT commands to help with this kind of formatting question?

Chris Paalman

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