[rrd-developers] suggestion: increase MAX_VNAME_LEN ?

George Coulouris coulouri at ncbi.nlm.nih.gov
Fri May 27 16:53:34 MEST 2005


Hello,

First, kudos! rrdtool 1.2 rocks.

Is it possible to make MAX_VNAME_LEN larger, perhaps FILENAME_MAX?

It's very easy to overflow the default MAX_VNAME_LEN of 29 when you're 
constructing vnames in an automated fashion (e.g. 
DEF:${MACHINE}_${RRDNAME}).

The following (or similar) should do the job:

$ diff rrd_graph.h.orig rrd_graph.h
8,9c8,9
< #define MAX_VNAME_LEN 29
< #define DEF_NAM_FMT "%29[-_A-Za-z0-9]"
---
 > #define MAX_VNAME_LEN 64
 > #define DEF_NAM_FMT "%64[-_A-Za-z0-9]"

Thanks!

Regards,
George Coulouris
National Center for Biotechnology Information (contractor)

--
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://lists.ee.ethz.ch/rrd-developers
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-developers mailing list