summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa-m16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 4dc1387..5bea941 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -106,23 +106,23 @@ sub format_route {
say "BUG";
next;
}
- if ( not defined $stop->{arr_time} ) {
+ if ( not defined $stop->arr_time ) {
$output .= sprintf( " %5s %40s %s\n",
- $stop->{dep_time}, $stop->{stop}, $stop->{platform}, );
+ $stop->dep_time, $stop->name, $stop->platform, );
}
- elsif ( not defined $stop->{dep_time} ) {
+ elsif ( not defined $stop->dep_time ) {
$output .= sprintf( "%5s %40s %s\n",
- $stop->{arr_time}, $stop->{stop}, $stop->{platform}, );
+ $stop->arr_time, $stop->name, $stop->platform, );
}
- elsif ( $stop->{arr_time} eq $stop->{dep_time} ) {
+ elsif ( $stop->arr_time eq $stop->dep_time ) {
$output .= sprintf( " %5s %40s %s\n",
- $stop->{dep_time}, $stop->{stop}, $stop->{platform}, );
+ $stop->dep_time, $stop->name, $stop->platform, );
}
else {
$output .= sprintf(
"%5s → %5s %40s %s\n",
- $stop->{arr_time}, $stop->{dep_time},
- $stop->{stop}, $stop->{platform},
+ $stop->arr_time, $stop->dep_time,
+ $stop->name, $stop->platform,
);
}
}