Skip to content

Commit 96dd341

Browse files
committed
hw-mgmt: scripts: Fix voltage threshold calculation for Delta 1100 PSU
The fix for bug 3874682 has added voltage threshold calculations for Delta 1100 PSU based on the value of critical max threshold. However the reading of this value was done incorrectly, resulting in all calculated thresholds being defined as 0. This patch fixes the threshold calculation. Bug: 4505817 Signed-off-by: Felix Radensky <[email protected]>
1 parent 3bdec02 commit 96dd341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/usr/bin/hw-management-thermal-events.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ if [ "$1" == "add" ]; then
10951095
fi
10961096

10971097
if [[ "$cap" == "1100" && $mfr == "DELTA" ]]; then
1098-
out_crit=$(<"$thermal_path"/"$psu_name"_volt_out_crit)
1098+
out_crit=$(<"$power_path"/"$psu_name"_volt_out_crit)
10991099
out_lcrit=$(((out_crit*662)/1000))
11001100
out_min=$(((out_crit*745)/1000))
11011101
out_max=$(((out_crit*952)/1000))

0 commit comments

Comments
 (0)