X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=doc%2Fcdeftutorial.pod;h=b2016a23c9a1308ced6ca4ecd67803f62c38a15a;hb=97f86b3e9786bf440073d869aa0d2e6cfd71b3a9;hp=2bd8fd66f76e1f8335cee9264f0efe5d093ba016;hpb=333ab21495916a8d1c4a2861ef3fe86763fde684;p=pkg-rrdtool.git diff --git a/doc/cdeftutorial.pod b/doc/cdeftutorial.pod index 2bd8fd6..b2016a2 100644 --- a/doc/cdeftutorial.pod +++ b/doc/cdeftutorial.pod @@ -617,7 +617,7 @@ numbers (or zero) only. Let's compile the complete CDEF: DEF:ds0=router1.rrd:AVERAGE - CDEF:ds0modified=TIME,begintime,GT,TIME,endtime,LE,*,ds0,UNKN,IF + CDEF:ds0modified=TIME,begintime,GT,TIME,endtime,LE,*,ds0,UNKN,IF This will return the value of ds0 if both comparisons return true. You could also do it the other way around: @@ -862,7 +862,7 @@ You may do some complex data filtering: DEF:var=database.rrd:traffic:AVERAGE CDEF:prev1=PREV(var) - CDEF:time=TIME + CDEF:time=var,POP,TIME CDEF:prevtime=PREV(time) CDEF:derivate=var,prev1,-,time,prevtime,-,/ LINE3:derivate#000077:derivate