[rrd-users] Re: Help: how do I put '%' in GPRINT?

Michael Boman michael.boman at securecirt.com
Thu Jan 15 17:53:47 MET 2004


On Fri, 2004-01-16 at 00:29, Yi Chu wrote:
> I want to display 's0 54.1%' on the graph (utilization
> for interface s0).  I can do 's0  54.1' with GPRINT,
> but have trouble to put in the '%'.
> 
> Here is what I hve for GPRINT
> 
> "GPRINT:BtoApct:MAX:$intface  %4.1lf"
> 
> which produced '54'.  I tried 
> 
> "GPRINT:BtoApct:MAX:$intface  %4.1lf %s\%"
> 
> and it did not work. Error message is
> 
> ERROR: bad format for [G]PRINT in 's0  %4.1lf %s%'
> 
> Please help advise.
> 
> yi
If I recall correctly you need to do double % signs for a litteral %
sign:

GPRINT:BtoApct:MAX:$intface  %4.1lf %s%%

Warning, not tested.

Best regards
 Michael Boman

-- 
Michael Boman
Security Architect, SecureCiRT Pte Ltd
http://www.securecirt.com

-- Attached file removed by Ecartis and put at URL below --
-- Type: application/pgp-signature
-- Desc: This is a digitally signed message part
-- Size: 190 bytes
-- URL : http://www.ee.ethz.ch/~slist/p/70-signature.asc


--
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