aboutsummaryrefslogtreecommitdiffstats
path: root/core/planner.c
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-04-16 18:57:26 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-20 10:57:11 -0700
commit9b8fc9f64a78ac9c80f071a87e15da301375cede (patch)
tree32dbac8249242a079a30bc25d719630aca1e32c8 /core/planner.c
parent0bce84b09d89dc2f0105e2aabcee5b53a734162f (diff)
downloadsubsurface-9b8fc9f64a78ac9c80f071a87e15da301375cede.tar.gz
Show % after Büllmanns GFs
2 strings in the planner output showed based on "Bühlmann ZHL-16B with GFLow = " gradient factors without % after the factor. While this is fine for an abbreviated form like GF 40/80, this looks strange for a verbose sentence like the 2 corrected ones. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/planner.c')
-rw-r--r--core/planner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/planner.c b/core/planner.c
index e57bd10ed..27c179508 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -827,7 +827,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
/* Print the settings for the diveplan next. */
if (decoMode() == BUEHLMANN){
- snprintf(temp, sz_temp, translate("gettextFromC", "Deco model: Bühlmann ZHL-16C with GFLow = %d and GFHigh = %d"),
+ snprintf(temp, sz_temp, translate("gettextFromC", "Deco model: Bühlmann ZHL-16C with GFLow = %d%% and GFHigh = %d%%"),
diveplan->gflow, diveplan->gfhigh);
} else if (decoMode() == VPMB){
int temp_len;
@@ -840,7 +840,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
, diveplan->eff_gfhigh);
} else if (decoMode() == RECREATIONAL){
- snprintf(temp, sz_temp, translate("gettextFromC", "Deco model: Recreational mode based on Bühlmann ZHL-16B with GFLow = %d and GFHigh = %d"),
+ snprintf(temp, sz_temp, translate("gettextFromC", "Deco model: Recreational mode based on Bühlmann ZHL-16B with GFLow = %d%% and GFHigh = %d%%"),
diveplan->gflow, diveplan->gfhigh);
}
len += snprintf(buffer + len, sz_buffer - len, "<div>%s<br>",temp);