提交 bbf4cffa 编写于 作者: A Alessio Sergi

Add degree symbol in hddtemp

上级 a9c5adb3
......@@ -119,8 +119,10 @@ class GlancesGrabHDDTemp(object):
device = fields[offset + 1].decode('utf-8')
device = os.path.basename(device)
temperature = float(fields[offset + 3].decode('utf-8'))
unit = fields[offset + 4].decode('utf-8')
hddtemp_current['label'] = device
hddtemp_current['value'] = temperature
hddtemp_current['unit'] = unit
self.hddtemp_list.append(hddtemp_current)
def fetch(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册