X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=statistics.c;fp=statistics.c;h=5cb242e908c7c00a05fe7d712010d7ceb76d8b27;hb=fe532a585cb0c1250cca5994a78394aadc3e14dd;hp=4c637944329f8e3bea52257909c6f7f666acca16;hpb=c912e1fafbe9b025c334eb8b9a61e13bfcfdbfc9;p=ext%2Fsubsurface.git diff --git a/statistics.c b/statistics.c index 4c63794..5cb242e 100644 --- a/statistics.c +++ b/statistics.c @@ -172,7 +172,7 @@ void show_dive_stats(struct dive *dive) /* we assume that every valid cylinder has either a working pressure * or a size; but for good measure let's also accept cylinders with * a starting or ending pressure*/ - if (cyl->type.workingpressure.mbar || cyl->type.size.mliter || start || end) { + if (cyl->type.workingpressure.mbar || cyl->type.size.mliter || cyl->gasmix.o2.permille || start || end) { /* 0% O2 strangely means air, so 21% - I don't like that at all */ int o2 = cyl->gasmix.o2.permille ? : 209; if (offset > 0) {