Rename displayZeroSpeedFans to DISPLAY_ZERO_SPEED_FANS
This commit is contained in:
parent
e50509ea73
commit
49f62b0b3d
@ -223,10 +223,10 @@ function configure {
|
|||||||
case "$choiceDisplayZeroSpeedFans" in
|
case "$choiceDisplayZeroSpeedFans" in
|
||||||
# Set temperature search criteria
|
# Set temperature search criteria
|
||||||
[yY]|"")
|
[yY]|"")
|
||||||
displayZeroSpeedFans=true
|
DISPLAY_ZERO_SPEED_FANS=true
|
||||||
;;
|
;;
|
||||||
[nN] )
|
[nN] )
|
||||||
displayZeroSpeedFans=false
|
DISPLAY_ZERO_SPEED_FANS=false
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# If the user enters an invalid input, print an error message and exit the script with a non-zero status code
|
# If the user enters an invalid input, print an error message and exit the script with a non-zero status code
|
||||||
@ -706,8 +706,8 @@ Ext.define('PVE.mod.TempHelper', {\n\
|
|||||||
// If the value is an object, recursively call the function\n\
|
// If the value is an object, recursively call the function\n\
|
||||||
findFanKeys(value, fanKeys, key);\n\
|
findFanKeys(value, fanKeys, key);\n\
|
||||||
} else if (/^fan[0-9]+(_input)?$/.test(key)) {\n\
|
} else if (/^fan[0-9]+(_input)?$/.test(key)) {\n\
|
||||||
if ($displayZeroSpeedFans != true && value === 0) {\n\
|
if ($DISPLAY_ZERO_SPEED_FANS != true && value === 0) {\n\
|
||||||
// Skip this fan if displayZeroSpeedFans is false and value is 0\n\
|
// Skip this fan if DISPLAY_ZERO_SPEED_FANS is false and value is 0\n\
|
||||||
return;\n\
|
return;\n\
|
||||||
}\n\
|
}\n\
|
||||||
// If the key matches the pattern, add the parent key and value to the fanKeys array\n\
|
// If the key matches the pattern, add the parent key and value to the fanKeys array\n\
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user