diff options
author | Derf Null <derf@finalrewind.org> | 2023-05-03 18:02:51 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-05-03 18:02:51 +0200 |
commit | 49a8b3b9b49c9a15cf5913d75689d5d6c631f190 (patch) | |
tree | 67f4bde7c29c8d5d0ad61fce93e5a6521117a524 /lib/Travel/Status/DE/HAFAS/Journey.pm | |
parent | 7349b3ee9f135888a3814e14d68358f01fea6079 (diff) |
Revert "treat delays as integers. what the fuck."
This reverts commit 38071ce2ad25189ef7bbe14508e3d23e5a913001.
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Journey.pm')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index e3c1c2a..59d0411 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -121,12 +121,12 @@ sub new { my $arr_delay = ( $sched_arr and $rt_arr ) - ? 0 + ( $rt_arr->epoch - $sched_arr->epoch ) / 60 + ? ( $rt_arr->epoch - $sched_arr->epoch ) / 60 : undef; my $dep_delay = ( $sched_dep and $rt_dep ) - ? 0 + ( $rt_dep->epoch - $sched_dep->epoch ) / 60 + ? ( $rt_dep->epoch - $sched_dep->epoch ) / 60 : undef; my $arr_cancelled = $stop->{aCncl}; |