Ticket #106 (new enhancement)

Opened 3 years ago

Use arithmetic functions in VDEF definitions

Reported by: human Owned by: oetiker
Priority: major Milestone:
Component: rrd_graph Version:
Keywords: graph VDEF Cc:

Description

In the current version only the following operators can be used in VDEF variable definitions: MINIMUM, MAXIMUM, AVERAGE, LAST, FIRST, TOTAL, PERCENT, LSLSLOPE, LSLINT, LSLCORREL. I would like to be able to use basic arithmetic functions like +,-,*,/ in a VDEF definition as well, so that I can do something like:

VDEF:delta=mydata,LAST,mydata,FIRST,-

Then I can use the delta variable in a GPRINT function to display its value in the legend.

Thanks, Ben van Balen

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.