Only do 9 minute interval for min/max/avg

We don't use 3 and 6 minute values anywhere, so why calculate them.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-20 15:55:51 -07:00
parent e0ac1c9a26
commit eb07faef00
4 changed files with 24 additions and 31 deletions

View file

@ -50,9 +50,9 @@ struct plot_data {
double mod, ead, end, eadd;
velocity_t velocity;
int speed;
// stats over 3, 6, 9 minute windows:
int min[3], max[3]; // indices into pi->entry[]
int avg[3]; // actual depth average
// stats over 9 minute window:
int min, max; // indices into pi->entry[]
int avg; // actual depth average
/* values calculated by us */
unsigned int in_deco_calc : 1;
int ndl_calc;