From aaffe02d0419754663852b004c4b13769fc5cc8f Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Thu, 25 May 2023 15:10:27 +0200 Subject: [PATCH] exclude non-existing distributors from power script --- scripts/MDC.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/MDC.pm b/scripts/MDC.pm index a4d1532..e12786e 100644 --- a/scripts/MDC.pm +++ b/scripts/MDC.pm @@ -93,6 +93,7 @@ sub get_power_output { my $hostname = sprintf("mdcpd%03i",$id); return(-1,0,0) if $id==-1; + return(-1,0,0) if $id==0; open FILE, "../installation/power_outputs.db" or die $!."\npower_outputs.db not found."; while (my $a = ) { -- 2.43.0