From 322410a8455fd63e02d9d495cfc8cc3240fc7225 Mon Sep 17 00:00:00 2001 From: Jan Schubert Date: Tue, 15 Jan 2013 18:39:28 +0100 Subject: Trivial pressure related fixes This patch removes the need for the "string" pressurebuf in planner.c. It also adds a unit to the partial pressures displayed in the mouse overlay which are always displayed in bar. BTW: Has anyone seen a pO2 shown in PSI? Signed-off-by: Jan Schubert Signed-off-by: Dirk Hohndel --- profile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'profile.c') diff --git a/profile.c b/profile.c index d30f1d0f0..5f4149208 100644 --- a/profile.c +++ b/profile.c @@ -2149,15 +2149,15 @@ static void plot_string(struct plot_data *entry, char *buf, size_t bufsize, } if (prefs.pp_graphs.po2) { memcpy(buf2, buf, bufsize); - snprintf(buf, bufsize, "%s\npO" UTF8_SUBSCRIPT_2 ":%.2f", buf2, entry->po2); + snprintf(buf, bufsize, "%s\npO" UTF8_SUBSCRIPT_2 ":%.2fbar", buf2, entry->po2); } if (prefs.pp_graphs.pn2) { memcpy(buf2, buf, bufsize); - snprintf(buf, bufsize, "%s\npN" UTF8_SUBSCRIPT_2 ":%.2f", buf2, entry->pn2); + snprintf(buf, bufsize, "%s\npN" UTF8_SUBSCRIPT_2 ":%.2fbar", buf2, entry->pn2); } if (prefs.pp_graphs.phe) { memcpy(buf2, buf, bufsize); - snprintf(buf, bufsize, "%s\npHe:%.2f", buf2, entry->phe); + snprintf(buf, bufsize, "%s\npHe:%.2fbar", buf2, entry->phe); } if (prefs.mod) { mod = (int)get_depth_units(entry->mod, NULL, &depth_unit); -- cgit v1.2.3-70-g09d2