Skip to content

Commit

Permalink
tools/progress: (attempt to) fix colors
Browse files Browse the repository at this point in the history
  • Loading branch information
polybiusproxy committed Nov 24, 2024
1 parent bc720e6 commit 51f140d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion progress/dbug_progress.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion": 1, "label": "dbug", "message": "100.0000%", "color": "brightgreen"}
{"schemaVersion": 1, "label": "dbug", "message": "100.0000%", "color": "lime"}
2 changes: 1 addition & 1 deletion progress/iop_mdl_progress.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion": 1, "label": "iop_mdl", "message": "100.0000%", "color": "brightgreen"}
{"schemaVersion": 1, "label": "iop_mdl", "message": "100.0000%", "color": "lime"}
2 changes: 1 addition & 1 deletion progress/main_progress.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion": 1, "label": "main", "message": "37.3593%", "color": "brightorange"}
{"schemaVersion": 1, "label": "main", "message": "37.6535%", "color": "darkorange"}
2 changes: 1 addition & 1 deletion progress/menu_progress.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion": 1, "label": "menu", "message": "7.9470%", "color": "brightred"}
{"schemaVersion": 1, "label": "menu", "message": "7.9470%", "color": "crimson"}
2 changes: 1 addition & 1 deletion progress/nalib_progress.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion": 1, "label": "nalib", "message": "0.0000%", "color": "brightred"}
{"schemaVersion": 1, "label": "nalib", "message": "0.0000%", "color": "crimson"}
2 changes: 1 addition & 1 deletion progress/os_progress.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion": 1, "label": "os", "message": "100.0000%", "color": "brightgreen"}
{"schemaVersion": 1, "label": "os", "message": "100.0000%", "color": "lime"}
2 changes: 1 addition & 1 deletion progress/prlib_progress.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion": 1, "label": "prlib", "message": "5.3141%", "color": "brightred"}
{"schemaVersion": 1, "label": "prlib", "message": "5.3141%", "color": "crimson"}
2 changes: 1 addition & 1 deletion progress/total_progress.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion": 1, "label": "Total percentage", "message": "46.1006%", "color": "brightorange"}
{"schemaVersion": 1, "label": "Total percentage", "message": "46.1755%", "color": "darkorange"}
8 changes: 4 additions & 4 deletions tools/report_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ def save(data, filename):

def getColor(percentage):
if percentage >= 75:
return "brightgreen"
return "lime"
elif percentage >= 50:
return "brightyellow"
return "yellow"
if percentage >= 25:
return "brightorange"
return "darkorange"
else:
return "brightred"
return "crimson"

def parse_progress(output):
lines = output.strip().split("\n")
Expand Down

0 comments on commit 51f140d

Please sign in to comment.