Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix worker name coloring (don't color parents)

  • Loading branch information...
commit ededd8a7ccd8e07560f770462cfd8a2ba00c4a9f 1 parent c0794b5
@fizzisist fizzisist authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 frontend/theseven/cursesui.py
View
4 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({ \
Please sign in to comment.
Something went wrong with that request. Please try again.