summaryrefslogtreecommitdiffstats
path: root/backend-shared/divesummary.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-28 16:50:21 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-28 15:34:54 -0800
commiteec15112180a22ffc04f15a20706e9c6941698d0 (patch)
treea3e5c32f3fcd93e7774016cc625d72effbd99fcf /backend-shared/divesummary.h
parent303b5865cdf3e9cefd5e5263ee15fd869623b1e8 (diff)
downloadsubsurface-eec15112180a22ffc04f15a20706e9c6941698d0.tar.gz
divesummary: correct SAC calculation
Do not count dives where SAC == 0. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'backend-shared/divesummary.h')
-rw-r--r--backend-shared/divesummary.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend-shared/divesummary.h b/backend-shared/divesummary.h
index 16f8a09ec..986024b44 100644
--- a/backend-shared/divesummary.h
+++ b/backend-shared/divesummary.h
@@ -24,5 +24,6 @@ private:
static long divetime[2], depth[2], sac[2];
static long divetimeMax[2], depthMax[2], sacMin[2];
static long divetimeAvg[2], depthAvg[2], sacAvg[2];
+ static int divesSAC[2];
};
#endif // DIVESUMMARY_H