Fixes issue #103 'parseHddTempOutput only listing first drive'

This commit is contained in:
Marcel Metz
2014-06-03 09:53:24 +02:00
parent 31d557c2b1
commit 685c2a7f23

View File

@@ -159,7 +159,7 @@ function parseVoltageLine(label, value) {
function parseHddTempOutput(txt, sep) {
let hddtemp_output = [];
if (txt.indexOf((sep+sep), txt.length - (sep+sep).length))
if (txt.indexOf((sep+sep), txt.length - (sep+sep).length) >= 0)
{
hddtemp_output = txt.split(sep+sep);
}