summaryrefslogtreecommitdiff
path: root/bin/hafas-m
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-28 08:24:27 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-28 08:24:27 +0200
commita9d5268457783df67c77b3bce67d9f750ba14df1 (patch)
tree59026175d891658e53ed0be332349da60ba3b401 /bin/hafas-m
parent9317d6e3bef2d3e018ad4c9ee5f32f40c0c2df09 (diff)
station board: parse load (tcocX) as well
Diffstat (limited to 'bin/hafas-m')
-rwxr-xr-xbin/hafas-m7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index 0e9c8b4..f0d7968 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -293,6 +293,13 @@ for my $d ( $status->results ) {
}
}
+ if ( $d->load ) {
+ $info_line
+ = display_occupancy( $d->load->{FIRST} )
+ . display_occupancy( $d->load->{SECOND} ) . ' '
+ . $info_line;
+ }
+
push(
@output,
[