mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-01 22:14:06 +03:00
Correct issue #271 on HDDTemp module
This commit is contained in:
parent
b31c60f1a0
commit
9144f7443b
@ -945,7 +945,13 @@ class glancesGrabHDDTemp:
|
||||
hddtemp_current = {}
|
||||
temperature = fields[offset + 3]
|
||||
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
|
||||
else:
|
||||
hddtemp_current['label'] = fields[offset + 1].split("/")[-1]
|
||||
|
Loading…
Reference in New Issue
Block a user