From: Jan Michel Date: Thu, 25 May 2023 13:10:27 +0000 (+0200) Subject: exclude non-existing distributors from power script X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=aaffe02d0419754663852b004c4b13769fc5cc8f;p=hades_mdc_settings.git exclude non-existing distributors from power script --- 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 = ) {