Hi Kevin
Thank you very much for your script. I just took the latest from Github yesterday but had to do some major debugging to get it to work.
In the end I found out that the default values do not get set:
These don't get called and saved into the working variables:
The the beginning I had an div/0 error which was due to this line (592):
Taking out the "default_" took care of it.
Thank you very much for your script. I just took the latest from Github yesterday but had to do some major debugging to get it to work.
In the end I found out that the default values do not get set:
These don't get called and saved into the working variables:
Code:
$default_hd_ave_target = 38; # PID control loop will target this average temperature for the warmest N disks $default_Kp = 16/3; # PID control loop proportional gain $default_Ki = 0; # PID control loop integral gain $default_Kd = 24; # PID control loop derivative gain $default_hd_num_peak = 2; # Number of warmest HDs to use when calculating average temp
The the beginning I had an div/0 error which was due to this line (592):
Code:
my $ave_temp = $temp_sum / $hd_num_peak;
Taking out the "default_" took care of it.