[rrd-users] CDEF,RPN, no decimal constant possible?
Steve Shipway
s.shipway at auckland.ac.nz
Fri Jul 11 11:54:09 CEST 2014
>[constants in the RPN are stored in doubles, but COMPUTE type DS convert using...]
>
>typedef struct rpn_cdefds_t {
> char op; /* rpn operator type */
> short val; /* used by OP_NUMBER and OP_VARIABLE */
>} rpn_cdefds_t;
>
>Now val is only a short int.
Well spotted! I saw the first struct used doubles, but didn't dig deeply enough to spot this one.
I would say this is a bug; however, there might be a reason for it, if Tobi can tell us?
Otherwise, it should probably be a double and not a short -- making a patch for rrdtool should be simple.
Steve
Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz
Ph: +64 9 373 7599 ext 86487
More information about the rrd-users
mailing list