summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subsurface-core/profile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/subsurface-core/profile.c b/subsurface-core/profile.c
index 1969a6fac..55faf9ca7 100644
--- a/subsurface-core/profile.c
+++ b/subsurface-core/profile.c
@@ -86,8 +86,13 @@ int get_maxtime(struct plot_info *pi)
else
return ROUND_UP(seconds + DURATION_THR/4, CEILING);
} else {
+#ifndef SUBSURFACE_MOBILE
/* min 30 minutes, rounded up to 5 minutes, with at least 2.5 minutes to spare */
return MAX(30 * 60, ROUND_UP(seconds + DURATION_THR/4, CEILING * 5));
+#else
+ /* just add 2.5 minutes so we have a consistant right margin */
+ return seconds + DURATION_THR / 4;
+#endif
}
}