fix bugs that were found

This commit is contained in:
arcan1s
2014-04-01 23:35:31 +04:00
parent decf714e74
commit c66b255e8b
4 changed files with 35 additions and 21 deletions

View File

@ -147,7 +147,7 @@ class DataEngine:
self.parent.netFormat = self.parent.netNonFormat
elif (str(sourceName).split('/')[0] == "lmsensors"):
value = str(round(float(data[QString(u'value')]), 1))
self.parent.temp[sourceName] = "%4s" % (value)
self.parent.temp[str(sourceName)] = "%4s" % (value)
elif (str(sourceName).split('/')[0] == "partitions"):
value = str(round(float(data[QString(u'value')]), 1))
self.parent.mount['/'+'/'.join(str(sourceName).split('/')[1:-1])] = "%5s" % (value)