diff options
author | Patrick Valsecchi <patrick@thus.ch> | 2013-10-01 15:51:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-01 09:47:48 -0700 |
commit | 1524b1a0aee3086c61d9b28fff43832b30a76948 (patch) | |
tree | 3083512d6508278f2035e26f5b096efe8a9e0bda /profile.c | |
parent | 413f649ad8d68ddf9343d63ac9f7e9ef9ce4ce0a (diff) | |
download | subsurface-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |