Merge pull request #10 from AnthonyMichaelTDM/patch-1

fix: be quiet when the $quiet flag is set
This commit is contained in:
Tim Connors 2025-09-11 06:19:01 +10:00 committed by GitHub
commit 2b6c1590f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,7 +129,7 @@ sub set_fans_servo {
print "weighted_temp = $weighted_temp ; ambient_temp $ambient_temp\n" if $print_stats;
if ((!defined $current_mode) or ($current_mode ne "set")) {
print "--> disable dynamic fan control\n";
print "--> disable dynamic fan control\n" if !($quiet and (defined $current_mode) and ($current_mode eq "reset"));
system("ipmitool raw 0x30 0x30 0x01 0x00") == 0 or return 0;
# if this fails, want to return telling caller not to think weve
# made a change