diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-02-09 06:50:53 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-09 07:02:43 -0800 |
commit | c7efcb23a9a838f88c6691cb7b278126ae639c4b (patch) | |
tree | 13574139ec6d4b8e7db05ed7efb56f3a65cacd92 /statistics.c | |
parent | 0755cc522b9d68580f79e567808770df5814f150 (diff) | |
download | subsurface-c7efcb23a9a838f88c6691cb7b278126ae639c4b.tar.gz |
Add a meandepth to the dive structure
This is currently only used in one place (in statistics.c), but it
certainly is consistent with the other recent changes to avoid using only
the first divecomputer when trying to make statements about a dive.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.c')
-rw-r--r-- | statistics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c index 33789a93d..43e12efed 100644 --- a/statistics.c +++ b/statistics.c @@ -146,7 +146,7 @@ static void process_dive(struct dive *dp, stats_t *stats) if (!duration) return; stats->avg_depth.mm = (1.0 * old_tt * stats->avg_depth.mm + - duration * dp->dc.meandepth.mm) / stats->total_time.seconds; + duration * dp->meandepth.mm) / stats->total_time.seconds; if (dp->sac > 2800) { /* less than .1 cuft/min (2800ml/min) is bogus */ sac_time = stats->total_sac_time + duration; stats->avg_sac.mliter = (1.0 * stats->total_sac_time * stats->avg_sac.mliter + |