diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-13 11:39:08 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-13 11:39:08 +0100 |
commit | b8c760605104322b990674d90940f409c774adff (patch) | |
tree | ffaadad1bc579f8d4fb1f11cf98fa9182c554ec0 /bin/efa | |
parent | a095bb169c206c8b712514433ccceeac64e1d8f9 (diff) |
show occupancy data if available
Diffstat (limited to 'bin/efa')
-rwxr-xr-x | bin/efa | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -228,6 +228,18 @@ sub display_connection { } } + if ( $c->occupancy ) { + if ( $c->occupancy == 1 ) { + say "# geringe Auslastung"; + } + elsif ( $c->occupancy == 2 ) { + say "# hohe Auslastung"; + } + elsif ( $c->occupancy == 3 ) { + say "# sehr hohe Auslastung"; + } + } + for my $notice ( $c->current_notes ) { if ( $notice->subtitle ne $notice->subject ) { printf( "# %s - %s\n", $notice->subtitle, $notice->subject ); |