[rrd-developers] Patch for 1.0.28 rrdgraph '-x' label string bug

Terminator rAT karl_schilke at eli.net
Sat Feb 3 00:36:38 MET 2001


Hi,

I noticed that in RRDTool up to 1.0.28, the rrdgraph(1) '--x-grid'
argument does not work correctly if the strftime(3) string contains
spaces.  For instance, if you try to use :

    rrdtool graph ... --x-grid "DAY:1:WEEK:1:WEEK:1:86400:%b %e, %Y" ...

The x ticks will be labeled "Jan", not "Jan 15, 2001" (or whatever).  The
attached patch fixes the -x argument parsing code by copying the entire
format string following the last ':' character into im.xlab_form[].

Cheers,

	-rAT

-- 
O----O  Email: kschilke at eli.net - Phone: (360)816-3837 - Pi: (314)159-2654
 \Oo/       "The scientific name for an animal that doesn't either run 
==\/==         from or fight its enemies is lunch." -Michael Friedman


-- Attached file removed by Listar and put at URL below --
-- Type: TEXT/PLAIN
-- Size: 959 bytes
-- URL : http://www.ee.ethz.ch/~slist/pantomime/rrd-x-grid-patch


--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list