[rrd-developers] Re: Bugreport: rpn with vnames starting with "LE,LT,GE,...."
oetiker at ee.ethz.ch
oetiker at ee.ethz.ch
Sun May 21 14:38:56 MEST 2006
Alex,
the following fixes this problem ...
Index: rrd_rpncalc.c
===================================================================
--- rrd_rpncalc.c (revision 827)
+++ rrd_rpncalc.c (working copy)
@@ -274,9 +274,9 @@
}
#define match_op(VV,VVV) \
- else if (strncmp(expr, #VVV, strlen(#VVV))==0){ \
- rpnp[steps].op = VV; \
- expr+=strlen(#VVV); \
+ else if (strncmp(expr, #VVV, strlen(#VVV))==0 && ( expr[strlen(#VVV)] == ',' || expr[strlen(#VVV)] == '\0' )){ \
+ rpnp[steps].op = VV; \
+ expr+=strlen(#VVV); \
}
cheers
tobi
>
> confirmed, "CDEF:x=LEAPS..." does not work, "CDEF:x=XLEAPS..." does.
>
> Looking in source now.
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://tobi.oetiker.ch tobi at oetiker.ch ++41 62 213 9907
--
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