summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a941291)
raw | patch | inline | side by side (parent: a941291)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 30 Oct 2008 14:33:01 +0000 (14:33 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 30 Oct 2008 14:33:01 +0000 (14:33 +0000) |
program/doc/cdeftutorial.pod | patch | blob | history |
index 6a45ef4a0d4fcf5aa1e9288ba7bc3ec1d1960e1c..c0ea257cf51b5cb05ab1c4574ccd628724c84904 100644 (file)
Let's compile the complete CDEF:
DEF:ds0=router1.rrd:AVERAGE
- CDEF:ds0modified=TIME,begintime,GE,TIME,endtime,LE,*,UNKN,ds0,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: