diff options
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r-- | lib/DBInfoscreen.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index 83cb77a..836f94e 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -240,7 +240,9 @@ sub startup { $self->helper( 'utilization_icon' => sub { my ( $self, $utilization ) = @_; - my ( $first, $second ) = @{ $utilization // [ 0, 0 ] }; + my ( $first, $second ) = @{ $utilization // [] }; + $first //= 0; + $second //= 0; my $sum = ( $first + $second ) / 2; my @symbols |