[rrd-users] NAN and 0 in aggregate graphs

Adam Jacob Muller rrdtool-users at adam.gs
Mon Mar 31 17:51:23 CEST 2008


I actually just ended up doing something like

ds1,UN,ds2,UN,+,2,EQ,NAN,total,IF

Worked well


Sent from my iPhone

On Mar 31, 2008, at 11:34 AM, Simon Hobson <linux at thehobsons.co.uk>  
wrote:

> 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 !
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users



More information about the rrd-users mailing list