From 1524b1a0aee3086c61d9b28fff43832b30a76948 Mon Sep 17 00:00:00 2001 From: Patrick Valsecchi Date: Tue, 1 Oct 2013 15:51:34 +0200 Subject: Ascending/descending speeds are usually expressed in x/min There is debate on this one, as free divers WANT the xx/sec values. This needs to become flexible depending on whether you are in freedive mode or not. Fixes #202 Signed-off-by: Patrick Valsecchi Signed-off-by: Dirk Hohndel --- profile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profile.c b/profile.c index b20899419..79d59f099 100644 --- a/profile.c +++ b/profile.c @@ -1236,12 +1236,12 @@ static void plot_string(struct plot_data *entry, char *buf, int bufsize, snprintf(buf, bufsize, _("%s\nT:%.1f %s"), buf2, tempvalue, temp_unit); } - speedvalue = get_depth_units(abs(entry->speed), NULL, &depth_unit); + speedvalue = get_depth_units(abs(entry->speed), NULL, &depth_unit)*60; memcpy(buf2, buf, bufsize); /* Ascending speeds are positive, descending are negative */ if (entry->speed > 0) speedvalue *= -1; - snprintf(buf, bufsize, _("%s\nV:%.2f %s/s"), buf2, speedvalue, depth_unit); + snprintf(buf, bufsize, _("%s\nV:%.1f %s/min"), buf2, speedvalue, depth_unit); if (entry->ceiling) { depthvalue = get_depth_units(entry->ceiling, NULL, &depth_unit); -- cgit v1.2.3-70-g09d2