Code

The tcl binding supports tcl < 8.5, too.
[pkg-rrdtool.git] / doc / cdeftutorial.pod
index 2bd8fd66f76e1f8335cee9264f0efe5d093ba016..b2016a23c9a1308ced6ca4ecd67803f62c38a15a 100644 (file)
@@ -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