summaryrefslogtreecommitdiff
path: root/bin/efa
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-13 11:39:08 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-13 11:39:08 +0100
commitb8c760605104322b990674d90940f409c774adff (patch)
treeffaadad1bc579f8d4fb1f11cf98fa9182c554ec0 /bin/efa
parenta095bb169c206c8b712514433ccceeac64e1d8f9 (diff)
show occupancy data if available
Diffstat (limited to 'bin/efa')
-rwxr-xr-xbin/efa12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/efa b/bin/efa
index 5840068..5675d1c 100755
--- a/bin/efa
+++ b/bin/efa
@@ -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 );