From: "Berg, Ivan" <iberg@montana.edu>
First of all, thanks Jeff for the quick response time on 0.68. It is very
handy being
able to talk to developers first hand.
Hey, do you think this could be added in a future version of cricket?
The problem is when a counter get's reset to zero. This produces a large
spike in the
graph which throws off the range and average's for some time.
It seems that was is stored in the data file is differences in data and this
is divided
by time to give us something like data/sec. So it works my doing
(current data - last data)/ time. Now this value is positive when the
counter is
incrementing and only negative when the counter gets reset to zero. Would
it be possible
to add small routine to check if there is a negative difference and account
for it.
Here a couple ideas to handle the negative and incorrect values.
1. Throw away the data point, i.e don't store it in the data.
2. Set point to 0 to avoid spikes, it would still slightly affect average
but not as
much as large spike.
3. If detect negative value, then average the last two data points and
store that
as the current data point. That would be the most accurate of the three
and
would not throw off the scale at all.
Thanks
--------------------------- ONElist Sponsor ----------------------------
ONElist members are using Shared Files in great ways!
http://www.onelist.com
Are you? If not, see our homepage for details.
------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:00:56 PST