diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-10-09 18:26:41 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-10-09 18:26:41 +0200 |
commit | 6b2932cd9b7df92ec8a35326fa861fa4291f0fb4 (patch) | |
tree | 32b3a628941bc765903e06f0020f266df1f82f3a /bin | |
parent | a68cadc24bcdceb6b141cc689589bf8741392fa9 (diff) |
use Stop.pm for stop data instead of arrayrefs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/aseag-m | 10 |
1 files changed, 6 insertions, 4 deletions
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; |