This is a discussion on [rrd-users] RPN Confusion within the RRD Users forums, part of the Networking and Network Related category; Hi! Ok, maybe discussed into archives, but I cannot find any solution. Now I want to understood the RPN syntax ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi!
Ok, maybe discussed into archives, but I cannot find any solution. Now I want to understood the RPN syntax to write my own graph with different colors. I'm at this point... trying to determinate a stack value. in example, changing color every 20 units. The first CDEF is ok (0-20), it's an area: C1=ds,20,GE,20,ds,IF also if ds>20 then C1=20, else C1=ds. And this goes to AREA Until here, OK! The second will be a stack (20-40). if ds>40, then C2=20, elseif ds>20 then C2=ds-20 else C2=0 The last it's a stack too: if ds>lastvaluelimit, then Cn=ds-lastvaluelimit, else Cn=0 I cannot write it into RPN, have no idea how to set elseif and make operations to variables only in the else case. I've read the tutorial, it's not discussed how use multiple IF Please :( -- Simone Felici E-Mail: s.felici@alpikom.it Divisione Tecnica Tel: 0461 030 111 Alpikom S.p.A. Fax: 0461 030 112 v.Fersina, 23 - 38100 Trento URL: http://www.alpikom.it _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |