X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2Fcdeftutorial.pod;h=72d18070f2c2a5462e4f091a1f381c9817fbed58;hb=9303efe65cf85353de7b75d7cf2eb42c89e9c9f3;hp=fc24a34e3f9196f08bc132efd4c8613bc2d70335;hpb=4fcb3724f76c344e270bfc58662f2eb70a0915af;p=rrdtool.git diff --git a/doc/cdeftutorial.pod b/doc/cdeftutorial.pod index fc24a34..72d1807 100644 --- a/doc/cdeftutorial.pod +++ b/doc/cdeftutorial.pod @@ -4,8 +4,13 @@ cdeftutorial - Alex van den Bogaerdt's CDEF tutorial =head1 DESCRIPTION -If you provide a question, I will try to provide an answer in the next -release of this tutorial. No feedback equals no changes! Additions to +Intention of this document: to provide some examples of the commonly +used parts of RRDtool's CDEF language. + +If you think some important feature is not explained properly, and if +adding it to this document would benefit most users, please do ask me +to add it. I will then try to provide an answer in the next release +of this tutorial. No feedback equals no changes! Additions to this document are also welcome. -- Alex van den Bogaerdt Ealex@ergens.op.het.netE @@ -612,7 +617,7 @@ numbers (or zero) only. 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: @@ -744,7 +749,7 @@ as follows: 5. push 32 6. push function "plus" and process it the stack contains now the temperature in Fahrenheit - + =head2 Changing unknown into zero rrdtool graph demo.png --title="Demo Graph" \