X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2Frrdgraph_rpn.src;h=f9ac7fedb9959cb66390026df5dd1fe921009c20;hb=9e81c95f3ef30967ea08f70a22bae2fe0031c901;hp=3278f84179cad1740956f1a8bf53682d9d0ebefc;hpb=b7c278771851b0dfad0daf1c817fbc93316ef96e;p=rrdtool.git diff --git a/doc/rrdgraph_rpn.src b/doc/rrdgraph_rpn.src index 3278f84..f9ac7fe 100644 --- a/doc/rrdgraph_rpn.src +++ b/doc/rrdgraph_rpn.src @@ -42,16 +42,12 @@ would do C and need no parentheses. B -I - Pop two elements from the stack, compare them for the selected condition and return 1 for true or 0 for false. Comparing an I or an I value will always result in 0 (false). B -I - Pop one element from the stack, compare this to I respectively to I. Returns 1 for true or 0 for false. @@ -127,6 +123,20 @@ set or otherwise the result of this B at the previous time step. This allows you to do calculations across the data. This function cannot be used in B instructions. +B + +Pushes an I value if this is the first value of a data +set or otherwise the result of vname variable at the previous time +step. This allows you to do calculations across the data. This +function cannot be used in B instructions. + +B + +Pushes the number 1 if this is the first value of the data set, the +number 2 if it is the second, and so on. This special value, allows +you to make calculations based on the position of the value within +the data set. This function cannot be used in B instructions. + Z<> =item Time @@ -190,17 +200,35 @@ Z<> =item MAXIMUM, MINIMUM, AVERAGE -Return the corresponding value +Return the corresponding value, MAXIMUM and MINIMUM also return +the first occurance of that value in the time component. + +Example: C Z<> =item LAST, FIRST -Return the last,first value including its time +Return the last,first value including its time. The time for +FIRST is actually the start of the corresponding interval, where +LASTs time component returns the end of the corresponding interval. + +Example: C + +Z<> + +=item TOTAL + +Returns the rate from each defined timeslot multiplied with the +step size. This can for instance return total bytes transfered +when you have logged bytes per second. The time component returns +the amount of seconds + +Example: C Z<> -=item PERCENTILE +=item PERCENT Should follow a B or B I. This I is popped, another number is popped which is a certain percentage (0..100). The @@ -208,9 +236,10 @@ data set is then sorted and the value returned is chosen such that I percent of the values is lower or equal than the result. I values are considered lower than any finite number for this purpose so if this operator returns an I you have quite a lot -of them in your data... +of them in your data. Binite numbers are lesser, or more, than the +finite numbers and are always more than the I numbers. -Example: C +Example: C =back