summaryrefslogtreecommitdiff
path: root/archey3
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-08-17 23:48:22 +0100
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-08-17 23:48:22 +0100
commit448a92accfa525a61efd6c69dfe2c10cc202023f (patch)
treef55452a214c2f9d2c3cfdf50936908b5a652d954 /archey3
parent7b9596ab962df7491b387ccbd7590c6b1f19e4f6 (diff)
Fixed error with old coloring code in sensors module.
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