Skip to content

Commit

Permalink
applet.interface.freq_counter: resolve aliasing issue, by also consid…
Browse files Browse the repository at this point in the history
…ering the 'total' stats in the min/max summary
  • Loading branch information
attie-argentum committed Oct 12, 2020
1 parent 2229bef commit 80618ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions software/glasgow/applet/interface/freq_counter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def print_result_row(self, title, unit, *values):

def print_results(self, results, title, key, unit):
values = (
num_to_si(min(*( v[key] for k,v in results.items() if k != "total" ))),
num_to_si(min(*( v[key] for k,v in results.items() ))),
num_to_si(results["total"][key]),
num_to_si(max(*( v[key] for k,v in results.items() if k != "total" ))),
num_to_si(max(*( v[key] for k,v in results.items() ))),
)
self.print_result_row(title, unit, *values)

Expand Down

0 comments on commit 80618ca

Please sign in to comment.