summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model/Journeys.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-15 20:29:30 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-15 20:29:30 +0100
commit1be5d4d0b02f335ea909b5decbf76f71353fc96c (patch)
tree339be33daa0f6755b3bfa56196563d0c39f56631 /lib/Travelynx/Model/Journeys.pm
parent4abc43b72e597f7c441fc2c287ed38255a1f439b (diff)
Journeys: perltidy
Diffstat (limited to 'lib/Travelynx/Model/Journeys.pm')
-rwxr-xr-xlib/Travelynx/Model/Journeys.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm
index 0d47763..05728c0 100755
--- a/lib/Travelynx/Model/Journeys.pm
+++ b/lib/Travelynx/Model/Journeys.pm
@@ -1164,7 +1164,11 @@ sub compute_review {
}
}
- if ( $journey->{rt_duration} and $journey->{sched_duration} and $journey->{rt_duration} > 0 and $journey->{sched_duration} > 0 ) {
+ if ( $journey->{rt_duration}
+ and $journey->{sched_duration}
+ and $journey->{rt_duration} > 0
+ and $journey->{sched_duration} > 0 )
+ {
my $slowdown = $journey->{rt_duration} - $journey->{sched_duration};
my $speedup = -$slowdown;
if (