Line must contain 6 fields

This commit is contained in:
MendelGusmao
2013-03-24 06:09:00 -03:00
parent c8fabf20f1
commit 39b546aaf4

View File

@@ -710,9 +710,10 @@ class glancesGrabHDDTemp:
for line in lines:
hddtemp_current = {}
fields = line.split('|')
hddtemp_current['label'] = fields[1]
hddtemp_current['value'] = int(fields[3])
self.hddtemp_list.append(hddtemp_current)
if len(fields) == 6:
hddtemp_current['label'] = fields[1]
hddtemp_current['value'] = int(fields[3])
self.hddtemp_list.append(hddtemp_current)
sck.close()
def get(self):