fix naming
This commit is contained in:
parent
34075feb96
commit
8565bd05ee
@ -188,16 +188,16 @@ function configure {
|
|||||||
SENSORS_DETECTED=true
|
SENSORS_DETECTED=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Look for ram temps
|
# Look for memory temps
|
||||||
msg "\nDetecting support for Ram temperature sensors..."
|
msg "\nDetecting support for Memory temperature sensors..."
|
||||||
if (echo "$sensorsOutput" | grep -q '"SODIMM":'); then
|
if (echo "$sensorsOutput" | grep -q '"SODIMM":'); then
|
||||||
msg "Detected Ram temperature sensors:\n$(echo "$sensorsOutput" | grep -o '"SODIMM[^"]*"' | sed 's/"//g')"
|
msg "Detected Memory temperature sensors:\n$(echo "$sensorsOutput" | grep -o '"SODIMM[^"]*"' | sed 's/"//g')"
|
||||||
ENABLE_RAM_TEMP=true
|
ENABLE_MEMORY_TEMP=true
|
||||||
SENSORS_DETECTED=true
|
SENSORS_DETECTED=true
|
||||||
|
|
||||||
else
|
else
|
||||||
warn "No Ram temperature sensors found."
|
warn "No Memory temperature sensors found."
|
||||||
ENABLE_RAM_TEMP=false
|
ENABLE_MEMORY_TEMP=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if HDD/SSD data is installed
|
# Check if HDD/SSD data is installed
|
||||||
@ -758,8 +758,8 @@ Ext.define('PVE.mod.TempHelper', {\n\
|
|||||||
}" "$PVE_MANAGER_LIB_JS_FILE"
|
}" "$PVE_MANAGER_LIB_JS_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $ENABLE_RAM_TEMP = true ]; then
|
if [ $ENABLE_MEMORY_TEMP = true ]; then
|
||||||
# Add Ram temperature display
|
# Add Memory temperature display
|
||||||
sed -i "/^Ext.define('PVE.node.StatusView',/ {
|
sed -i "/^Ext.define('PVE.node.StatusView',/ {
|
||||||
:a;
|
:a;
|
||||||
/items:/!{N;ba;}
|
/items:/!{N;ba;}
|
||||||
@ -806,7 +806,7 @@ Ext.define('PVE.mod.TempHelper', {\n\
|
|||||||
objValue = {};\n\
|
objValue = {};\n\
|
||||||
}\n\
|
}\n\
|
||||||
\n\
|
\n\
|
||||||
// Recursive function to find Ram keys and values\n\
|
// Recursive function to find memory keys and values\n\
|
||||||
function findMemoryKeys(obj, memoryKeys, parentKey = null) {\n\
|
function findMemoryKeys(obj, memoryKeys, parentKey = null) {\n\
|
||||||
Object.keys(obj).forEach(key => {\n\
|
Object.keys(obj).forEach(key => {\n\
|
||||||
const value = obj[key];\n\
|
const value = obj[key];\n\
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user