<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello RRD-Users,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm new to rrd and have the following question.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>To show the last value of a rrd in  a meaningful unit I have to do some math in rrd-graph.</DIV><DIV>This works ok for CDEF and plots the right graph.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>CDEF:realdist=221,mydist,-,100,*,121,/ </DIV><DIV>LINE2:realdist#00c000:"%"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Now I want to show the last value via GPRINT and wanted to do the math with a VDEF.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This does not work:</DIV><DIV>VDEF:value=mydist,LAST</DIV><DIV>VDEF:distpercent=221,value,-,100,*,121,/ </DIV><DIV>GPRINT:distpercent:"%2.2lf"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The problem is in the second line when I calculate distpercent.</DIV><DIV>How can I do this? Any other way?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Looking forward to receive some help.</DIV><DIV>With best regards,</DIV><DIV>Peter</DIV><BR><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>Peter Mueller</DIV><DIV><A href="mailto:peter.o.mueller@gmx.de">peter.o.mueller@gmx.de</A></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>