mirror of https://github.com/nicolargo/glances
Correct issue #271 on HDDTemp module
parent
b31c60f1a0
commit
9144f7443b
|
@ -945,7 +945,13 @@ class glancesGrabHDDTemp:
|
||||||
hddtemp_current = {}
|
hddtemp_current = {}
|
||||||
temperature = fields[offset + 3]
|
temperature = fields[offset + 3]
|
||||||
if temperature == "ERR":
|
if temperature == "ERR":
|
||||||
hddtemp_current['label'] = "hddtemp error"
|
hddtemp_current['label'] = _("hddtemp error")
|
||||||
|
hddtemp_current['value'] = 0
|
||||||
|
elif temperature == "SLP":
|
||||||
|
hddtemp_current['label'] = fields[offset + 1].split("/")[-1] + " is sleeping"
|
||||||
|
hddtemp_current['value'] = 0
|
||||||
|
elif temperature == "UNK":
|
||||||
|
hddtemp_current['label'] = fields[offset + 1].split("/")[-1] + " is unknown"
|
||||||
hddtemp_current['value'] = 0
|
hddtemp_current['value'] = 0
|
||||||
else:
|
else:
|
||||||
hddtemp_current['label'] = fields[offset + 1].split("/")[-1]
|
hddtemp_current['label'] = fields[offset + 1].split("/")[-1]
|
||||||
|
|
Loading…
Reference in New Issue