summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen.pm4
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