Ticket #77 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

New RPN operator: ABS

Reported by: human Owned by: oetiker
Priority: trivial Milestone:
Component: rrd_graph Version:
Keywords: rpn abs Cc:

Description

The attached patch implements an "ABS" operator that takes the absolute value of the number on the top of the stack. This is mostly a convenience operator -- the same thing can be accomplished through other means (i.e., DUP,*,SQRT) at the expense of readability.

Attachments

rrdtool-1.2.19-rpn-abs.patch Download (1.8 KB) - added by human 5 years ago.

Change History

Changed 5 years ago by human

comment:1 Changed 5 years ago by human

For some reason, Trac isn't showing any of the changes the patch makes to rrd_rpncalc.c. Please use the "Download in other formats: Original Format" link to see the entire patch.

comment:2 Changed 5 years ago by oetiker

  • Status changed from new to closed
  • Resolution set to fixed

thanks ... whoever you are ... r1008

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.