diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-03 13:19:26 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-03 13:19:26 -0700 |
commit | 1e75ceac0dbbf6a6eef1e13f076c3ae6a7af4c55 (patch) | |
tree | 151f82c3460c92f67f3bd59e30a45cbd54846247 /parse-xml.c | |
parent | f8e39675cccd01b4b76d88b0f9bef922fce3e8f3 (diff) | |
download | subsurface-1e75ceac0dbbf6a6eef1e13f076c3ae6a7af4c55.tar.gz |
Add various dive fixups, and show pressure (if any) in the plot
Now the dive profile plot *really* needs some units. The pressure is
just a random line otherwise.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/parse-xml.c b/parse-xml.c index 3a84e2963..e6ace216f 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -29,7 +29,7 @@ static void record_dive(struct dive *dive) dive_table.dives = dives; dive_table.allocated = allocated; } - dives[nr] = dive; + dives[nr] = fixup_dive(dive); dive_table.nr = nr+1; } @@ -787,19 +787,6 @@ static void sample_end(void) if (!dive) return; - if (sample->time.seconds > dive->duration.seconds) { - if (sample->depth.mm) - dive->duration = sample->time; - } - - if (sample->depth.mm > dive->maxdepth.mm) - dive->maxdepth.mm = sample->depth.mm; - - if (sample->temperature.mkelvin) { - if (!dive->watertemp.mkelvin || dive->watertemp.mkelvin > sample->temperature.mkelvin) - dive->watertemp = sample->temperature; - } - sample = NULL; dive->samples++; } |