From 49a8b3b9b49c9a15cf5913d75689d5d6c631f190 Mon Sep 17 00:00:00 2001
From: Derf Null <derf@finalrewind.org>
Date: Wed, 3 May 2023 18:02:51 +0200
Subject: [PATCH] Revert "treat delays as integers. what the fuck."

This reverts commit 38071ce2ad25189ef7bbe14508e3d23e5a913001.
---
 lib/Travel/Status/DE/HAFAS/Journey.pm | 4 ++--
 1 file 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};
-- 
GitLab