summaryrefslogtreecommitdiff
path: root/archey3
diff options
context:
space:
mode:
Diffstat (limited to 'archey3')
-rwxr-xr-xarchey312
1 files changed, 6 insertions, 6 deletions
diff --git a/archey3 b/archey3
index 9222833..d183d90 100755
--- a/archey3
+++ b/archey3
@@ -322,14 +322,14 @@ class sensorDisplay(display):
value = info[1]
intvalue = int(value[:3])
if intvalue > 45:
- temp = (self._parent.color("red") + info[1] +
- self._parent.color("clear"))
+ temp = (color(self.state, "red") + info[1] +
+ color(self.state, "clear"))
elif intvalue in range(30, 45):
- temp = (self._parent.color("magenta") + info[1] +
- self._parent.color("clear"))
+ temp = (color(self.state, "magenta") + info[1] +
+ color(self.state, "clear"))
else:
- temp = (self._parent.color("green") + info[1] +
- self._parent.color("clear"))
+ temp = (color(self.state, "green") + info[1] +
+ color(self.state, "clear"))
out.append((info[0], temp))
return out