Drive index starts from 1 instead of 0

This commit is contained in:
rmm 2023-07-06 19:04:27 +02:00
parent abf1c8d097
commit b3e240c8fa

View File

@ -272,7 +272,7 @@ function install_mod {
Object.keys(objValue[drvKey][sensorName]).forEach((secondLevelKey) => {\n\
if (secondLevelKey.includes('_input')) {\n\
let temp = objValue[drvKey][sensorName][secondLevelKey];\n\
temps.push(\`Drive \${index}: \${temp}°C\`);\n\
temps.push(\`Drive \${index + 1}: \${temp}°C\`);\n\
}\n\
})\n\
} catch(e) { /*_*/ }\n\
@ -314,7 +314,7 @@ function install_mod {
Object.keys(objValue[nvmeKey][sensorName]).forEach((secondLevelKey) => {\n\
if (secondLevelKey.includes('_input')) {\n\
let temp = objValue[nvmeKey][sensorName][secondLevelKey];\n\
temps.push(\`Drive \${index}: \${temp}°C\`);\n\
temps.push(\`Drive \${index + 1}: \${temp}°C\`);\n\
}\n\
})\n\
} catch(e) { /*_*/ }\n\