Ticket #114 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

rpn expressions without DEF or CDEF variables SHOULD BE supported

Reported by: human Owned by: oetiker
Priority: minor Milestone:
Component: rrd_graph Version:
Keywords: rrd variables Cc: rrdtool@…

Description

Use-case for rpn without variables is "smart" HRULE.

rrdtool graph $dir-$hours.png --lazy \
  ...
  CDEF:limit_top=LTIME,$(( 24 * 60 * 60)),%,$(( 8 * 60 * 60)),$(( 20 * 60 * 60)),LIMIT,UN,32000,16000,IF \
  CDEF:limit_mid=limit_top,2,/ \
  "LINE:limit_mid#666600 LINE2:limit_top#666600"

Now I have to use ugly constructions with fake variables:

  CDEF:limit_top=foo,foo,-,LTIME,+,$(( 24 * 60 * 60)),%,$(( 8 * 60 * 60)),$(( 20 * 60 * 60)),LIMIT,UN,32000,16000,IF

So CDEF without variables IS not error.

Change History

comment:1 Changed 4 years ago by human

And one more note, is it possible to hide CC list (and e-mail addresses) from anonymous persons ? That may slow down address crawlers.

comment:2 Changed 4 years ago by oetiker

  • Status changed from new to assigned

a CDEF variable must have a 'resolution' without DEF connection it has no resultion ... changeing that is pretty deep ... in any event, the most efficient way for getting around this is to use

CDEF:x=foo,POP,...

take a look at the code ... implementation ideas for such a change are welcome ...

re your second issue ... I am not aware that there is a way to hide the cc list in trac. cheers tobi

comment:3 Changed 4 years ago by oetiker

  • Status changed from assigned to closed
  • Resolution set to worksforme
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.