mirror of
https://github.com/derf/travelynx
synced 2024-12-12 14:02:33 +00:00
validate_journey: handle 0 timestamps
This commit is contained in:
parent
c31254e996
commit
ba62df34ea
1 changed files with 2 additions and 2 deletions
|
@ -2731,11 +2731,11 @@ sub startup {
|
|||
}
|
||||
$ref->{messages} = [ reverse @parsed_messages ];
|
||||
$ref->{sched_duration}
|
||||
= $ref->{sched_arr_ts}
|
||||
= defined $ref->{sched_arr_ts}
|
||||
? $ref->{sched_arr_ts} - $ref->{sched_dep_ts}
|
||||
: undef;
|
||||
$ref->{rt_duration}
|
||||
= $ref->{rt_arr_ts}
|
||||
= defined $ref->{rt_arr_ts}
|
||||
? $ref->{rt_arr_ts} - $ref->{rt_dep_ts}
|
||||
: undef;
|
||||
my ( $km_route, $km_beeline, $skip )
|
||||
|
|
Loading…
Reference in a new issue