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>
This commit is contained in:
jan Iversen 2020-01-28 16:50:21 +01:00 committed by Dirk Hohndel
parent 303b5865cd
commit eec1511218
2 changed files with 13 additions and 5 deletions

View file

@ -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