Skip to content

Commit 5fcaa6c

Browse files
authored
Apply suggestions from code review
1 parent 5ac5b26 commit 5fcaa6c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

distributed/dashboard/components/scheduler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4129,6 +4129,10 @@ def __init__(self, scheduler, **kwargs):
41294129
}
41304130

41314131
formatters = {
4132+
# Use a pure number (0 to nthreads) on the total line and a %
4133+
# (e.g. 0 to 400% for 4 threads per worker ) on the individual workers.
4134+
# It would be very confusing to read e.g. 9000% on the total, whereas
4135+
# seeing that ~90 CPU equivalents are being fully used is more meaningful.
41324136
"cpu": HTMLTemplateFormatter(
41334137
template="<% if (_is_total) { %><%= (value).toFixed(1) %>"
41344138
"<% } else { %><%= Math.round(value * 100) %> %<% } %>"

0 commit comments

Comments
 (0)