On Sun, 25 Aug 2013 20:42:16 -0400
Scott Dwyer <[email protected]> wrote:

> To be more specific, every second (every screen update) put the
> current rate in a rotating 10 value table. So this table would always

To make it a bit easier for programming, you can do this without a
table/array - something I did when doing the firmware for a piece of
testing electronics with a very small microcontroller.

Keep two averages, one for the last 100 seconds, and one for the last
5~10.  Rembering that the data rate drops off towards the end, which
might trigger things if we keep the peak average.

http://en.wikipedia.org/wiki/Moving_average#Simple_moving_average

Paul.


-- 
Computer Repairs for Charters towers - http://ctpc.biz
A.B.N. 19 500 721 806

_______________________________________________
Bug-ddrescue mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-ddrescue

Reply via email to