mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
b8efe709a8
commit
e3088930ab
3 changed files with 47 additions and 8 deletions
1
dive.h
1
dive.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue