mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3b425b4c13
commit
40d05ed768
1 changed files with 3 additions and 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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue