mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-14 03:50:10 -04:00
Line must contain 6 fields
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user