Unverified Commit cf7f9933 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

review: skip journeys with negative duration

parent 4c1ae6d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1088,7 +1088,7 @@ sub compute_review {

		my %seen;

		if ( $journey->{rt_duration} ) {
		if ( $journey->{rt_duration} and $journey->{rt_duration} > 0 ) {
			if ( not $longest_t
				or $journey->{rt_duration} > $longest_t->{rt_duration} )
			{
@@ -1163,7 +1163,7 @@ sub compute_review {
			}
		}

		if ( $journey->{rt_duration} and $journey->{sched_duration} ) {
		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 (