summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index efc6de453..33fea504c 100644
--- a/profile.c
+++ b/profile.c
@@ -1200,7 +1200,7 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
if (entry->bearing)
put_format(b, translate("gettextFromC", "bearing: %d\n"), entry->bearing);
if (entry->running_sum) {
- depthvalue = get_depth_units(entry->running_sum / 1000, NULL, &depth_unit);
+ depthvalue = get_depth_units(entry->running_sum / entry->sec, NULL, &depth_unit);
put_format(b, translate("gettextFromC", "mean depth to here %.1f%s\n"), depthvalue, depth_unit);
}