summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Patrick Valsecchi <patrick@thus.ch>2013-10-01 15:51:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-01 09:47:48 -0700
commit1524b1a0aee3086c61d9b28fff43832b30a76948 (patch)
tree3083512d6508278f2035e26f5b096efe8a9e0bda /profile.c
parent413f649ad8d68ddf9343d63ac9f7e9ef9ce4ce0a (diff)
downloadsubsurface-1524b1a0aee3086c61d9b28fff43832b30a76948.tar.gz
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 <patrick@thus.ch> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files 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);