Use actual min and max temperatures in statistics.

The statistics page only used each dive's "watertemp" attribute,
regardless of actual higher/lower temperatures in the samples.  By
finding the actual max/min temperatures, the statistics page utilize
more "real" data, and look better even on single dives.

Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Henrik Brautaset Aronsen 2013-01-24 19:58:59 +01:00 committed by Dirk Hohndel
parent b8efe709a8
commit e3088930ab
3 changed files with 47 additions and 8 deletions

1
dive.h
View file

@ -316,6 +316,7 @@ struct dive {
weightsystem_t weightsystem[MAX_WEIGHTSYSTEMS];
char *suit;
int sac, otu, cns, maxcns;
temperature_t mintemp, maxtemp;
/* Eventually we'll do multiple dive computers */
struct divecomputer dc;