<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hello Simon,</div>

<div> </div>

<div>this is working :-)</div>

<div>so this must really be a internal math and rounding issue.</div>

<div>Thanks for all you help!</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Donnerstag, 28. August 2014 um 11:23 Uhr<br/>
<b>Von:</b> "Simon Hobson" <simon@thehobsons.co.uk><br/>
<b>An:</b> "Thomas Brinkmann" <thomas.brinkmann@email.de><br/>
<b>Cc:</b> "list rrdtool" <rrd-users@lists.oetiker.ch><br/>
<b>Betreff:</b> Re: [rrd-users] Empty sections in AREA on graph, but values in database</div>

<div name="quoted-content">Out of interest, what happens if you simply add a cdef for stufe*100 (CDEF:stufe2=stufe,100,*) and plot a line for that ? I'd expect to see an almost straight line at 100, 200, or 300. Remove the plot commands for the other stuff and the autoscaling should show (say) 99 to 101 or something like that which would accentuate any "wobble".<br/>
<br/>
My guess is that internal maths and rounding means that you don't get exactly 1, 2, 3 - could be 0.999999 or 1.000001 for example.<br/>
<br/>
I'd be tempted to re-write the code like this :<br/>
CDEF:stufe0_flag=stufe,0.5,LT,INF,UNKN,IF<br/>
CDEF:stufe1_flag=stufe,0.5,GE,INF,UNKN,IF<br/>
CDEF:stufe2_flag=stufe,1.5,GE,INF,UNKN,IF<br/>
CDEF:stufe3_flag=stufe,2.5,GE,INF,UNKN,IF<br/>
<br/>
AREA:stufe0_flag#7c6767:Stufe 0 AUS \\t<br/>
AREA:stufe1_flag#98FB98:Stufe 1 \\t<br/>
AREA:stufe2_flag#fafa78:Stufe 2 \\t<br/>
AREA:stufe3_flag#fd6969:Stufe 3 \\t<br/>
<br/>
This would also mean that your graph would work after consolidation of data. Eg, at present, if you graph over (say) a week instead of a day, then there will be periods where the values is changing between (say) 1 & 2 and the result will be 1.something for that consolidated period. Using equality comparisons, these values won't math anything, but using comparative statements, it'll show as 1 if the consolidated value is less than 1.5 and 2 if it's over that.<br/>
 </div>
</div>
</div>
</div></div></body></html>