<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1595" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=vladoportos@bancodata.eu
href="mailto:vladoportos@bancodata.eu">VladoPortos</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=rrd-users@lists.oetiker.ch
href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 18, 2007 6:21 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [rrd-users] Not corect numbers
in rrd ?</DIV>
<DIV><BR></DIV>
<DIV>Hi all,<BR><BR>i made a graph which show online users and getting data
from mysql and so<BR>on...<BR><BR>but when i look on what data are feeded to
rrd they look like this:<BR><BR>58 38<BR><BR>and in rrd it looks like
this:<BR><BR>1182109560: 5.8000000000e+01 3.7985531650e+01<BR><BR>But in graph
last values are 58 (OK) and second one is 37 ( not OK )<BR><BR>Any idea what
im doing wrong ?</DIV>
<DIV><BR> </DIV></BLOCKQUOTE>
<DIV><FONT face=Arial size=2>If you want (a better chance of) the exact numbers
out that you put in, you must be sure you enter the data at the exact time which
matches the steps.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So do not enter the data at "now", but calculate
the time exactly at eg 12:00:00</FONT></DIV>
<DIV><FONT face=Arial size=2>If you run a cron job at 12:00, it might be
finished and enter the data at 12:00:01, and RRD interpolates by "drawing a
straight line" between the last time-corrected data and 12:00:01.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Eg, if the value at 11:58:00 was 37 and 12:00:01
was 38, at 12:00:00 it would be <FONT face="Times New Roman" size=3>37.985531650
</FONT></FONT></DIV>
<DIV>(the calculation is just an example, not the right values (probably))</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What works for me in my is storing the timestamp at
the start of the script and using it later when I enter the data, my scripts
takes quite a few seconds, because they fetch and parse data from webpages. My
cron manages to start the job in the right seconds mostly, it doesn't matter for
me if it slips a second or two.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Leif</FONT></DIV></FONT></DIV></BODY></HTML>