diff options
-rw-r--r-- | statistics.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c index 6459b3802..ece5419d9 100644 --- a/statistics.c +++ b/statistics.c @@ -352,7 +352,11 @@ char *get_gaslist(struct dive *dive) if (is_air(o2, he)) snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? ", %s" : "%s", _("air")); else - snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? ", %d/%d" : "%d/%d", + if (he == 0) + snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? _(", EAN%d") : _("EAN%d"), + (o2 + 5) / 10); + else + snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? ", %d/%d" : "%d/%d", (o2 + 5) / 10, (he + 5) / 10); offset = strlen(buf); } |