diff --git a/doc/cdeftutorial.pod b/doc/cdeftutorial.pod
index 2bd8fd66f76e1f8335cee9264f0efe5d093ba016..b2016a23c9a1308ced6ca4ecd67803f62c38a15a 100644 (file)
--- a/doc/cdeftutorial.pod
+++ b/doc/cdeftutorial.pod
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:
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