diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-12-08 13:56:46 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-08 13:58:14 -0800 |
commit | 40d05ed768eca91ac06058a1419291939b4b2a06 (patch) | |
tree | 72bd56048f55aa5d0fec5caea3fc4a49e01d0a2a /profile.c | |
parent | 3b425b4c1305f821d1bdafca3ecca8a6f3846a96 (diff) | |
download | subsurface-40d05ed768eca91ac06058a1419291939b4b2a06.tar.gz |
Show two decimal digits in pO2, pN2 and pHe in the tooltip
Tec divers seem to like a little bit more precision - and the dive
computers certainly provide it (or we can calculate it).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2122,15 +2122,15 @@ static void plot_string(struct plot_data *entry, char *buf, size_t bufsize, } if (partial_pressure_graphs.po2) { memcpy(buf2, buf, bufsize); - snprintf(buf, bufsize, "%s\npO" UTF8_SUBSCRIPT_2 ":%.1f", buf2, entry->po2); + snprintf(buf, bufsize, "%s\npO" UTF8_SUBSCRIPT_2 ":%.2f", buf2, entry->po2); } if (partial_pressure_graphs.pn2) { memcpy(buf2, buf, bufsize); - snprintf(buf, bufsize, "%s\npN" UTF8_SUBSCRIPT_2 ":%.1f", buf2, entry->pn2); + snprintf(buf, bufsize, "%s\npN" UTF8_SUBSCRIPT_2 ":%.2f", buf2, entry->pn2); } if (partial_pressure_graphs.phe) { memcpy(buf2, buf, bufsize); - snprintf(buf, bufsize, "%s\npHe:%.1f", buf2, entry->phe); + snprintf(buf, bufsize, "%s\npHe:%.2f", buf2, entry->phe); } free(buf2); } |