[rrd-developers] bugfix in rrd_tool.c against v1.0.33
Stephen Fromm
stephenf at nero.net
Mon Dec 10 16:58:21 MET 2001
I noticed a problem with the fetch command when your RRDs have Data
Sources with names longer than 14 characters, even though the
documentation allows for names up to 19 characters long. You end up
getting output that looks like:
ifInOctets ifOutOctets ifInUcastPktsifOutUcastPkts
There should be a space between ifInUcastPkts and ifOutUcastPkts. The
patch below fixes the problem.
*** src/rrd_tool.c Fri Dec 7 10:49:39 2001
--- src/rrd_tool.c.orig Fri Dec 7 10:47:19 2001
***************
*** 321,327 ****
datai=data;
printf(" ");
for (i = 0; i<ds_cnt;i++)
! printf(" %19s",ds_namv[i]);
printf ("\n\n");
for (i = start; i <= end; i += step){
printf("%10lu:", i);
--- 321,327 ----
datai=data;
printf(" ");
for (i = 0; i<ds_cnt;i++)
! printf("%14s",ds_namv[i]);
printf ("\n\n");
for (i = start; i <= end; i += step){
printf("%10lu:", i);
---
=======================================================================
Stephen Fromm Phone: 541.346.1712
NERO Operations & Systems Engineer Email: stephenf at nero.net
UO Computing Center
1225 Kincaid
Eugene, OR 97403
Public key: http://network-services.uoregon.edu/~stephenf/stephenf.asc
--
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