diff options
Diffstat (limited to 'subsurface-core')
-rw-r--r-- | subsurface-core/gaspressures.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/subsurface-core/gaspressures.c b/subsurface-core/gaspressures.c index c63e16204..5e7cd72ea 100644 --- a/subsurface-core/gaspressures.c +++ b/subsurface-core/gaspressures.c @@ -187,16 +187,11 @@ static struct pr_interpolate_struct get_pr_interpolate_data(pr_track_t *segment, if (entry->sec < segment->t_start) continue; - if (entry->sec >= segment->t_end) { - interpolate.pressure_time += entry->pressure_time; + interpolate.pressure_time += entry->pressure_time; + if (entry->sec >= segment->t_end) break; - } - if (i <= cur) { + if (i <= cur) interpolate.acc_pressure_time += entry->pressure_time; - interpolate.pressure_time += entry->pressure_time; - continue; - } - interpolate.pressure_time += entry->pressure_time; } return interpolate; } |