<html><body><div><br></div>><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif; line-height: 16px;">rrdtool takes the arrival</span><br style="line-height: 19px; color: rgb(0, 0, 0); font-family: Arial, sans-serif;"><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif; line-height: 16px;">>time of the values into account, so unless they are evenly spaced,</span><br style="line-height: 19px; color: rgb(0, 0, 0); font-family: Arial, sans-serif;"><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif; line-height: 16px;">>the result will not be the average, but rather an average weighted</span><br style="line-height: 19px; color: rgb(0, 0, 0); font-family: Arial, sans-serif;"><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif; line-height: 16px;">>by the interval of the values.</span><div><font color="#000000" face="Arial, sans-serif"><span style="line-height: 16px;"><br></span></font></div><div><font color="#000000" face="Arial, sans-serif"><span style="line-height: 16px;">Could you please offer us a formula for calculating a time-step value</span></font></div><div><font color="#000000" face="Arial, sans-serif"><span style="line-height: 16px;">of V = f(ti, vi) where ti belong to (t0, tn> for natural n (meaningful).</span></font></div><div><font color="#000000" face="Arial, sans-serif"><span style="line-height: 16px;">It would be clearer.</span></font></div><div><font color="#000000" face="Arial, sans-serif"><span style="line-height: 16px;"><br></span></font></div><div><font color="#000000" face="Arial, sans-serif"><span style="line-height: 16px;">Thank you so much.</span></font></div><div><font color="#000000" face="Arial, sans-serif"><span style="line-height: 16px;">jh</span></font></div><div><font color="#000000" face="Arial, sans-serif"><span style="line-height: 16px;"><br></span></font><div><p>---------- Původní zpráva ----------<br>Od: Tobias Oetiker <tobi@oetiker.ch><br>Datum: 25. 1. 2013<br>Předmět: Re: [rrd-users] How rrdtool will work if there are two or more sample points in one time step</p><br><blockquote>Hi David,<br><br>Today David Copperfield wrote:<br><br>> Hi,<br>><br>> I am new to wonderful RRD world, and got confused by the<br>> question:<br>><br>><br>> Let's say my rrd file's time step is set 300 seconds, but my<br>> sample script sends data every 60 seconds and update the rrd file<br>> 5 times (300/60) in each 60 seconds interval. What the final data<br>> will show up in the rrd file?<br>><br>> I got bothered by the question, and tried to simulate the case<br>> but got even more confused.<br>><br>> It turns out that if I run rrdtool update <file> time1:value1<br>> time2:value2 .... time5:value5 in one command, then I got a<br>> average of the 5 values (GAUGE type variable for simplicity), but<br>> if I run 5 'rrdtool update <time:value>' at each interval, then<br>> the value is of no rules to follow.<br>><br><br>this works perfectly well ... note that rrdtool takes the arrival<br>time of the values into account, so unless they are evenly spaced,<br>the result will not be the average, but rather an average weighted<br>by the interval of the values.<br><br>hth<br>tobi<br>-- <br>Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>http://it.oetiker.ch tobi@oetiker.ch ++41 62 775 9902 / sb: -9900</blockquote></div></div></body></html>