diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-10-13 11:21:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-13 07:44:48 -0700 |
commit | 374e137b168bbd2c50ad917e29ffce337cfa8f4e (patch) | |
tree | 538fd69104d7734bcc95018ce1b505621918e3c4 /profile.c | |
parent | f1550c1a86cee2cd69d9cfda10e035e6529413c8 (diff) | |
download | subsurface-374e137b168bbd2c50ad917e29ffce337cfa8f4e.tar.gz |
Say in infobox if NDL or TTS calculation was cut-off
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1206,10 +1206,17 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me * everything will be ok. */ put_string(b, translate("gettextFromC", "In deco (calc)\n")); } else if (prefs.calcndltts && entry->ndl_calc != 0) { - put_format(b, translate("gettextFromC", "NDL: %umin (calc)\n"), DIV_UP(entry->ndl_calc, 60)); + if(entry->ndl_calc < MAX_PROFILE_DECO) + put_format(b, translate("gettextFromC", "NDL: %umin (calc)\n"), DIV_UP(entry->ndl_calc, 60)); + else + put_format(b, translate("gettextFromC", "NDL: >2h (calc)\n")); + } + if (entry->tts_calc) { + if (entry->tts_calc < MAX_PROFILE_DECO) + put_format(b, translate("gettextFromC", "TTS: %umin (calc)\n"), DIV_UP(entry->tts_calc, 60)); + else + put_format(b, translate("gettextFromC", "TTS: >2h (calc)\n")); } - if (entry->tts_calc) - put_format(b, translate("gettextFromC", "TTS: %umin (calc)\n"), DIV_UP(entry->tts_calc, 60)); if (entry->rbt) put_format(b, translate("gettextFromC", "RBT: %umin\n"), DIV_UP(entry->rbt, 60)); if (entry->ceiling) { |