summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-12 20:25:50 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-12 20:25:50 +0100
commit9713bec22e9aaaded6fd237f206763cc0c59cfa6 (patch)
tree02f04497aad85c188bcc713a06976597e6f24967 /bin
parent7cdab8c1a3c8246d3c2f544eddc951fb90288e1c (diff)
Stop: Expose documented accessors as accessors. Oops.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas-m20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index 980bae2..faa2a90 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -308,16 +308,16 @@ elsif ( $opt{journey} ) {
for my $stop ( $result->route ) {
printf(
"%5s %s %5s %5s %1s%1s %s%s\n",
- $stop->{arr_cancelled} ? '--:--'
- : ( $stop->{arr} ? $stop->{arr}->strftime('%H:%M') : q{} ),
- ( $stop->{arr} and $stop->{dep} ) ? '→' : q{ },
- $stop->{dep_cancelled} ? '--:--'
- : ( $stop->{dep} ? $stop->{dep}->strftime('%H:%M') : q{} ),
- $stop->{delay} ? sprintf( '(%+d)', $stop->{delay} ) : q{},
- display_occupancy( $stop->{load}{FIRST} ),
- display_occupancy( $stop->{load}{SECOND} ),
- $stop->{name},
- $stop->{direction} ? sprintf( ' → %s', $stop->{direction} ) : q{}
+ $stop->arr_cancelled ? '--:--'
+ : ( $stop->arr ? $stop->arr->strftime('%H:%M') : q{} ),
+ ( $stop->arr and $stop->dep ) ? '→' : q{ },
+ $stop->dep_cancelled ? '--:--'
+ : ( $stop->dep ? $stop->dep->strftime('%H:%M') : q{} ),
+ $stop->delay ? sprintf( '(%+d)', $stop->delay ) : q{},
+ display_occupancy( $stop->load->{FIRST} ),
+ display_occupancy( $stop->load->{SECOND} ),
+ $stop->name,
+ $stop->direction ? sprintf( ' → %s', $stop->direction ) : q{}
);
}