From b3e240c8fa8cad5858c8f1efda34200934c936ca Mon Sep 17 00:00:00 2001 From: rmm Date: Thu, 6 Jul 2023 19:04:27 +0200 Subject: [PATCH] Drive index starts from 1 instead of 0 --- pve-mod-gui-temp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pve-mod-gui-temp.sh b/pve-mod-gui-temp.sh index 5a4be45..2702973 100644 --- a/pve-mod-gui-temp.sh +++ b/pve-mod-gui-temp.sh @@ -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\