Re: [rrd-users] RPN Confusion

This is a discussion on Re: [rrd-users] RPN Confusion within the RRD Users forums, part of the Networking and Network Related category; Simone Felici ha scritto: > Hi! > > Ok, maybe discussed into archives, but I cannot find any solution. > ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-05-2007
Simone Felici
 
Posts: n/a
Default Re: [rrd-users] RPN Confusion

Simone Felici ha scritto:
> 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 :(
>
>


Solved.... sorry for the mail ;)

middle stack:
C2=d,40,GE,20,d,20,GE,d,20,-,0,IF,IF

The lasta stack it's ok too:
Cn=ds,lastvaluelimit,GE,ds,lastvaluelimit,-,0,IF

Now I've to check eventually UNKN values ;)

Byebye

Happy!
Simon


--
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:55 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0