aboutsummaryrefslogtreecommitdiffstats
path: root/statistics.c
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2011-12-31 17:15:59 +0100
committerGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2011-12-31 17:15:59 +0100
commit16b6df559f7b5aabbcbec7d7d08f3687b30384dc (patch)
tree13f662c31843f3b8de4185c9037bf286cc9a2c3b /statistics.c
parent2175226580a523a9a3abba3723991b003eee5a2a (diff)
downloadsubsurface-16b6df559f7b5aabbcbec7d7d08f3687b30384dc.tar.gz
Define O2 permille for air in one spot
Having the O2 permille defined once is more readable. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Diffstat (limited to 'statistics.c')
-rw-r--r--statistics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c
index f8f9d0e24..9510030d7 100644
--- a/statistics.c
+++ b/statistics.c
@@ -171,7 +171,7 @@ void show_dive_stats(struct dive *dive)
end = cyl->end.mbar ? : cyl->sample_end.mbar;
if (!cylinder_none(cyl)) {
/* 0% O2 strangely means air, so 21% - I don't like that at all */
- int o2 = cyl->gasmix.o2.permille ? : 209;
+ int o2 = cyl->gasmix.o2.permille ? : AIR_PERMILLE;
if (offset > 0) {
snprintf(buf+offset, 80-offset, ", ");
offset += 2;