]> jspc29.x-matter.uni-frankfurt.de Git - hades_mdc_settings.git/commitdiff
exclude non-existing distributors from power script
authorJan Michel <michel@physik.uni-frankfurt.de>
Thu, 25 May 2023 13:10:27 +0000 (15:10 +0200)
committerJan Michel <michel@physik.uni-frankfurt.de>
Thu, 25 May 2023 13:10:27 +0000 (15:10 +0200)
scripts/MDC.pm

index a4d15325f7c52b6ca0f3c90ec7682018292e16c7..e12786e29eacede532aa070dd0a82c1cc03fb361 100644 (file)
@@ -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 = <FILE>) {