Permalink
Browse files

Fix worker name coloring (don't color parents)

  • Loading branch information...
1 parent c0794b5 commit ededd8a7ccd8e07560f770462cfd8a2ba00c4a9f @fizzisist fizzisist committed Mar 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 frontend/theseven/cursesui.py
@@ -134,9 +134,9 @@ def translateworkerdata(self, workers, workerstats, indent = 0):
try: tempcritical = worker['tempcritical']
except: tempcritical = 50
if invalidpercent > invalidcritical or ("temperature" in worker and worker['temperature'] != None and worker['temperature'] > tempcritical):
- namecolor = "r" if len(worker["children"]) > 0 else ""
+ namecolor = "r" if len(worker["children"]) == 0 else ""
elif invalidpercent > invalidwarning or ("temperature" in worker and worker['temperature'] != None and worker['temperature'] > tempwarning):
- namecolor = "y" if len(worker["children"]) > 0 else ""
+ namecolor = "y" if len(worker["children"]) == 0 else ""
else:
namecolor = ""
workerstats.append({ \

0 comments on commit ededd8a

Please sign in to comment.