mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:33:24 +00:00
Statistics: change our notion of "bogus SAC rate"
With a pSCR it is entirely possible to have a SAC rate below 2.8l/min. Since we still don't want to include SAC rates of 0 let's change the cutoff to 0.1l/min. Fixes #624 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9bf6100aa7
commit
3cdd4df8e8
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ static void process_dive(struct dive *dp, stats_t *stats)
|
|||
stats->avg_depth.mm = (1.0 * old_tt * stats->avg_depth.mm +
|
||||
duration * dp->meandepth.mm) /
|
||||
stats->total_time.seconds;
|
||||
if (dp->sac > 2800) { /* less than .1 cuft/min (2800ml/min) is bogus */
|
||||
if (dp->sac > 100) { /* less than .1 l/min is bogus, even with a pSCR */
|
||||
sac_time = stats->total_sac_time + duration;
|
||||
stats->avg_sac.mliter = (1.0 * stats->total_sac_time * stats->avg_sac.mliter +
|
||||
duration * dp->sac) /
|
||||
|
|
Loading…
Add table
Reference in a new issue