patch for rrdtool-1.2.19

Carter Bullard carter at qosient.com
Sat Apr 28 11:02:51 EDT 2007


Gentle people,
With regard to ragraph() and the rrdtool /J option not being supported
in the latest rrd-tool distribution, here is the patch that can be  
applied to
the latest,  rrdtool-1.2.19.  Until I can get a dialogue going with the
rrd-developers, I'll provide these patches in the ragraph subdirectory
(once we're happy that they work).

This modification allows us to get alignment of legend entries,  
without it
the legend can shift by a single character, if there are multiple  
lines of entries,
which doesn't look very good.

isis:~/Desktop/rrdtool-1.2.19/src$ diff rrd_graph.c rrd_graph.c.new
------ Begin patch --------
1412c1412
<     int   glue = 0;
---
 >     int   useglue = 1, glue = 0;
1492a1493,1496
 >         if (prt_fctn=='J') {
 >            prt_fctn = '\0';
 >            useglue = 0;
 >         }
1517c1521
<           if (leg_c >= 2 && prt_fctn == 'j') {
---
 >           if ((leg_c >= 2 && prt_fctn == 'j') && useglue) {

----- End patch --------


If there are any issues, please send mail to the list!!!

Carter



More information about the argus mailing list