Skip to content

Commit 80618ca

Browse files
applet.interface.freq_counter: resolve aliasing issue, by also considering the 'total' stats in the min/max summary
1 parent 2229bef commit 80618ca

File tree

1 file changed

+2
-2
lines changed
  • software/glasgow/applet/interface/freq_counter

1 file changed

+2
-2
lines changed

software/glasgow/applet/interface/freq_counter/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def print_result_row(self, title, unit, *values):
242242

243243
def print_results(self, results, title, key, unit):
244244
values = (
245-
num_to_si(min(*( v[key] for k,v in results.items() if k != "total" ))),
245+
num_to_si(min(*( v[key] for k,v in results.items() ))),
246246
num_to_si(results["total"][key]),
247-
num_to_si(max(*( v[key] for k,v in results.items() if k != "total" ))),
247+
num_to_si(max(*( v[key] for k,v in results.items() ))),
248248
)
249249
self.print_result_row(title, unit, *values)
250250

0 commit comments

Comments
 (0)