diff options
author | Robert C. Helling <helling@atdotde.de> | 2021-03-01 10:02:02 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2021-03-01 21:33:25 +0100 |
commit | 345959177f67807963de1c56534c89df149bdf2a (patch) | |
tree | cf6cfef6205fb75bd2c6dbd6e31ba1236b9172eb | |
parent | a72f2ac92de106cc801d98dcda35e5ca60c14d80 (diff) | |
download | subsurface-345959177f67807963de1c56534c89df149bdf2a.tar.gz |
Max ceiling precision
We used to round the ceilings for the individual tissues with
%.1f but the maximal (and thus effective) ceiling only with
%.0f. This makes no sense or be rounded up (to the conservative
side).
This commit shows also the maximal ceiling with higher accuracy.
Reported-by: Peter Hübner
Signed-off-by: Robert C. Helling <helling@atdotde.de>
-rw-r--r-- | core/profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/profile.c b/core/profile.c index 5b5d98b2d..3b214f4ab 100644 --- a/core/profile.c +++ b/core/profile.c @@ -1538,7 +1538,7 @@ static void plot_string(const struct dive *d, const struct plot_info *pi, int id put_format(b, translate("gettextFromC", "Surface GF %.0f%%\n"), entry->surface_gf); if (entry->ceiling) { depthvalue = get_depth_units(entry->ceiling, NULL, &depth_unit); - put_format_loc(b, translate("gettextFromC", "Calculated ceiling %.0f%s\n"), depthvalue, depth_unit); + put_format_loc(b, translate("gettextFromC", "Calculated ceiling %.1f%s\n"), depthvalue, depth_unit); if (prefs.calcalltissues) { int k; for (k = 0; k < 16; k++) { |