summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-16 15:50:28 -0600
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-16 15:50:28 -0600
commitda07b4e5d7a9e5960c1db0e5fd5dd042e9bf28d4 (patch)
tree51cb75565501f574fd58abcb6f115e73012118b9 /divelist.c
parent34fceb4a1ba8c9cffbcc02caf40961a65efa3db7 (diff)
downloadsubsurface-da07b4e5d7a9e5960c1db0e5fd5dd042e9bf28d4.tar.gz
Make divelist gas column slightly easier to understand
Since printing EANxx was met with a lot of resistance as it wastes space, maybe this makes things slightly better at least. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/divelist.c b/divelist.c
index 75ad42f8f..9fe3240d5 100644
--- a/divelist.c
+++ b/divelist.c
@@ -453,9 +453,9 @@ char *get_dive_gas_string(struct dive *dive)
snprintf(buffer, MAX_GAS_STRING, "%d/%d", o2, he);
else if (o2)
if (o2 == o2low)
- snprintf(buffer, MAX_GAS_STRING, "%d", o2);
+ snprintf(buffer, MAX_GAS_STRING, "%d%%", o2);
else
- snprintf(buffer, MAX_GAS_STRING, "%d" UTF8_ELLIPSIS "%d", o2low, o2);
+ snprintf(buffer, MAX_GAS_STRING, "%d" UTF8_ELLIPSIS "%d%%", o2low, o2);
else
strcpy(buffer, translate("gettextFromC", "air"));
}