From 6b2932cd9b7df92ec8a35326fa861fa4291f0fb4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 9 Oct 2015 18:26:41 +0200 Subject: use Stop.pm for stop data instead of arrayrefs --- bin/aseag-m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bin/aseag-m') diff --git a/bin/aseag-m b/bin/aseag-m index 7edb7d6..999d4a6 100755 --- a/bin/aseag-m +++ b/bin/aseag-m @@ -136,16 +136,18 @@ sub show_route { @res = map { [ $dt_format->format_duration( - $_->[0]->subtract_datetime($dt_now) + $_->datetime->subtract_datetime($dt_now) ), q{}, - $_->[1] + $_->name, + q{}, ] } @routes; } else { - @res = map { [ $_->[0]->strftime($strftime_format), q{}, $_->[1] ] } - @routes; + @res = map { + [ $_->datetime->strftime($strftime_format), q{}, $_->name, q{}, ] + } @routes; } return @res; -- cgit v1.2.3