[rrd-developers] Re: suggestion: increase MAX_VNAME_LEN ?

Tobias Oetiker oetiker at ee.ethz.ch
Fri May 27 21:13:18 MEST 2005


Hi George,

you are right ... I have upped the length to 255 characters

cheers
tobi
Today George Coulouris wrote:

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

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286

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