<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Yannick,<br>
    <br>
    Will give that a go tomorrow.<br>
    <br>
    Steve Shipway has come up with another solution off-list, and that
    seems to be approximately what I wanted - but you make a valid
    observation, and I will need to fix that.<br>
    <br>
    Regards,<br>
    <br>
    Chris<br>
    <br>
    On 24/02/13 23:07, Yannick Marquet wrote:
    <blockquote cite="mid:512A9D4A.6040603@yahoo.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hello,<br>
        <br>
        I think it's cause by this line :<br>
        <pre class="line-pre"><div class="line" id="file-gistfile1-txt-LC36">CDEF:ds4ak=ds4a,UN,0,ds4a,IF </div><div class="line" id="file-gistfile1-txt-LC37">CDEF:ds4bk=ds4b,UN,0,ds4b,IF </div><div class="line" id="file-gistfile1-txt-LC38">CDEF:totala=ds0ak,ds1ak,+,ds2ak,+,ds3ak,+,ds4ak,+ </div></pre>
        Your CDEF make all UNK value are equal to 0, including
        uncollected data (data collect in the future)<br>
        Be careful, because if your display range ends after your last
        entry. Your UNK (uncollected) values are replace by 0.<br>
        So using LAST return 0.<br>
        <br>
        Try to use ADDNAN (<a moz-do-not-send="true"
          class="moz-txt-link-freetext"
href="http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html#IArithmetics">http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html#IArithmetics</a>)
        instead of "+" and delete this line.<br>
        <pre class="line-pre"><div class="line" id="file-gistfile1-txt-LC36">CDEF:ds4ak=ds4a,UN,0,ds4a,IF </div><div class="line" id="file-gistfile1-txt-LC37">CDEF:ds4bk=ds4b,UN,0,ds4b,IF </div></pre>
        Yannick Marquet.<br>
        <br>
        <br>
        <br>
        Le 24/02/2013 17:51, Chris Malton a &eacute;crit&nbsp;:<br>
      </div>
      <blockquote cite="mid:512A44F9.4000307@cmalton.me.uk" type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        Hi all,<br>
        <br>
        I've been using rrdtool quite successfully for some time.&nbsp;
        However..... I've now hit a fairly awkward problem, and can't
        get my head around it.<br>
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        <a moz-do-not-send="true"
          href="https://gist.github.com/cjsoftuk/5024419">https://gist.github.com/cjsoftuk/5024419</a>
        is the rrdtool command I'm running (newlines added by me to make
        it readable!)<br>
        <br>
        The problem is, the "Current" column in the legend is always
        "0.00 bps".<br>
        If I switch from the CDEFs to the DEF, it's fine, but then I'm
        missing aggregated data.<br>
        <br>
        I'm sure I'm being stupid here, however, I can't see where I'm
        getting it wrong.<br>
        <br>
        Could anyone shed some light on the situation?<br>
        <br>
        Thanks in advance.<br>
        <br>
        Regards,<br>
        <br>
        Chris<br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
rrd-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>