diff options
author | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2011-08-17 23:48:22 +0100 |
---|---|---|
committer | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2011-08-17 23:48:22 +0100 |
commit | 448a92accfa525a61efd6c69dfe2c10cc202023f (patch) | |
tree | f55452a214c2f9d2c3cfdf50936908b5a652d954 /archey3 | |
parent | 7b9596ab962df7491b387ccbd7590c6b1f19e4f6 (diff) |
Fixed error with old coloring code in sensors module.
Diffstat (limited to 'archey3')
-rwxr-xr-x | archey3 | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |