From 0169246207f3916ff82c0643fd2be9a475cde360 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Wed, 5 Aug 2015 13:53:56 +0200 Subject: [PATCH] added support for STEPWIDTH rpn operator --- doc/rrdgraph_rpn.pod | 7 +++++++ src/rrd_graph.c | 8 ++++++++ src/rrd_rpncalc.c | 10 ++++++++-- src/rrd_rpncalc.h | 4 ++-- tests/Makefile.am | 4 ++-- tests/functions | 2 +- tests/rpn2 | 22 ++++++++++++++++++++++ tests/rpn2.output | 25 +++++++++++++++++++++++++ 8 files changed, 75 insertions(+), 7 deletions(-) create mode 100755 tests/rpn2 create mode 100644 tests/rpn2.output diff --git a/doc/rrdgraph_rpn.pod b/doc/rrdgraph_rpn.pod index cb3d1a9c..c5c1c0b4 100644 --- a/doc/rrdgraph_rpn.pod +++ b/doc/rrdgraph_rpn.pod @@ -341,6 +341,13 @@ B Pushes the current time on the stack. +B + +The with of the current step in seconds. You can use this to go back from +rate based presentations to absolute numbers + + CDEF:abs=rate,STEPWIDTH,*,PREF,ADDNAN + B