summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-05-30 11:54:21 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-05-30 11:54:21 +0200
commit5a72c603070503420a0fd826a0d39037ad771194 (patch)
tree1df22a51302d639a013bc6e65372ded3b6f6409d /lib/Travelynx/Command/work.pm
parent918ed6ab1f25d0babb2cfa6051ed7b49c58c3834 (diff)
work: fix HAFAS arrival wagonorder/stationinfo request logic
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r--lib/Travelynx/Command/work.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index ac47085..2ef83b0 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -87,7 +87,7 @@ sub run {
arr_eva => $arr
);
if ( $journey->class <= 16
- and $now->epoch - $found_dep->rt_arr->epoch > 600 )
+ and $found_dep->rt_arr->epoch - $now->epoch < 600 )
{
$self->app->add_wagonorder( $uid, 0, $train_id,
$found_dep->sched_dep, $journey->number );