[rrd-users] Re: spaces between GPRINTs and COMMENTS
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Mon Oct 22 12:54:49 MEST 2001
Nuno Emanuel Rodrigues wrote:
>
>
> Ok, i found what the problem was, with GPRINT:FIELD2:LAST:%12.1lf i was
> allocating 14 spaces to the GPRINT number, the xxxxxxxxxxxx.x , now i
> reduced to only 7, and seems better now.
> In a sprintf html page i found that i have this option: "0 use zeros, not
> spaces, to right-justify" i tryied GPRINT:FIELD2:LAST:%7.10lf, but didnt
> work.
> Humm...not supported by rrdtool or maybe i not using correctly...
You didn't understand the manual at all.
"Testing %7.4lfbps" means:
"Testing " print as is
"%" escape character, the next string has a special meaning.
"7" field is 7 chars wide and should have leading whitespace
".4" 4 out of 7 chars should be after the decimal point
(this leaves only 2 chars before the point: 2+1+4 = 7)
"lf" the number to print is a long float
"bps" print as is
To get leading whitespace use "Testing %07.4lfbps"
To left-justify use "Testing %-7.4lfbps"
You cannot have "%7.10lf" because this indicates that you want
10 out of 7 chars after the decimal point.
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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