summaryrefslogtreecommitdiff
path: root/bin/aseag-m
diff options
context:
space:
mode:
Diffstat (limited to 'bin/aseag-m')
-rwxr-xr-xbin/aseag-m10
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;