[rrd-users] NAN and 0 in aggregate graphs

Simon Hobson linux at thehobsons.co.uk
Mon Mar 31 17:34:03 CEST 2008


Alex van den Bogaerdt wrote:

>  > Hmm, looking at the doc pages it doesn't look like boolean operators
>>  (AND, OR) are provided,
>
>er...
>
>FALSE==0
>TRUE==1  (in reality: TRUE==anything but 0)
>
>           \
>  x     y   \   +      *
>------------+--------------
>FALSE FALSE | FALSE  FALSE
>FALSE TRUE  | TRUE   FALSE
>TRUE  FALSE | TRUE   FALSE
>TRUE  TRUE  | TRUE   TRUE
>
>If you want: if (x and y) then B else C:
>
>then use CDEF:   x,y,*,B,C,IF


Doh, so obvious when it's pointed out !



More information about the rrd-users mailing list