summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-17 08:14:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-17 08:16:15 -0700
commit3cdd4df8e8df98b20d60ee01988b69e47a855b60 (patch)
tree6e30d4d099ceedf7a15da39ab18002456993ee9d
parent9bf6100aa766ea3e2ab7fc5615a2e7ff7ceac71a (diff)
downloadsubsurface-3cdd4df8e8df98b20d60ee01988b69e47a855b60.tar.gz
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>
-rw-r--r--statistics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c
index 2f149113d..6b7983098 100644
--- a/statistics.c
+++ b/statistics.c
@@ -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) /