summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Travelynx/Helper/HAFAS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm
index 5a20515..64f2949 100644
--- a/lib/Travelynx/Helper/HAFAS.pm
+++ b/lib/Travelynx/Helper/HAFAS.pm
@@ -90,7 +90,7 @@ sub get_departures_p {
return Travel::Status::DE::HAFAS->new_p(
station => $opt{eva},
datetime => $when,
- duration => $opt{lookahead},
+ lookahead => $opt{lookahead} + $opt{lookbehind},
results => 300,
cache => $self->{realtime_cache},
promise => 'Mojo::Promise',