diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-09 11:15:18 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-08 18:22:30 -0800 |
commit | 926fcef2a1e83b58c37c948a3f1a904aa0be0d0e (patch) | |
tree | 7f759284b78c77beecb2a11bae25649122f2690a /save-xml.c | |
parent | b286ea638c8ce468cf9c1a1b5037867acb5d6fe4 (diff) | |
download | subsurface-926fcef2a1e83b58c37c948a3f1a904aa0be0d0e.tar.gz |
Do more dive fixup for each dive computer
In commit b6c9301e5847 ("Move more dive computer filled data to the
divecomputer structure") we moved the fields that get filled in by the
dive computers to be per-divecomputer data structures.
This patch re-creates some of those fields back in the "struct dive",
but now the fields are initialized to be a reasonable average from the
dive computer data. We already did some of this for the temperature
min/max fields for the statistics, so this just continues that trend.
The goal is to make it easy to look at "dive values" without having to
iterate over dive computers every time you do. Just do it once in
"fixup_dive()" instead.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c index b95a38028..22059a178 100644 --- a/save-xml.c +++ b/save-xml.c @@ -172,7 +172,7 @@ static void save_airpressure(FILE *f, struct divecomputer *dc) static void save_salinity(FILE *f, struct divecomputer *dc) { /* only save if we have a value that isn't the default of sea water */ - if (!dc->salinity || dc->salinity == 10300) + if (!dc->salinity || dc->salinity == SEAWATER_SALINITY) return; fputs(" <water", f); show_salinity(f, dc->salinity, " salinity='", "'"); |