Skip to content

Commit 9d3cc49

Browse files
author
telemin
committed
fix choose_ref_key
1 parent 93d57eb commit 9d3cc49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pypop/metrics/metricset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ def _choose_ref_key(stats_dict):
107107
return min(
108108
stats_dict.items(),
109109
key=lambda x: "{:05}_{:05}".format(
110-
x[1].metadata.total_threads, x[1].metadata.threads_per_process[0]
110+
sum(x[1].metadata.threads_per_process),
111+
max(x[1].metadata.threads_per_process),
111112
),
112113
)[0]
113114

0 commit comments

Comments
 (0)