Skip to content

Commit

Permalink
Merge pull request #102 from CalebRouleau/master
Browse files Browse the repository at this point in the history
Fix UnboundLocalError in SummarizeData.py.
  • Loading branch information
randomascii authored Apr 27, 2017
2 parents ca03153 + 561e167 commit 6ee1daa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LabScripts/GeneralTracing/SummarizeData.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def Summarize(filename, interesting_processes, label, units, results,
record_other_process = True
interesting_processes = (
chrome_processes + edge_processes + interesting_processes)
other_process = None

first_line = True
browser_process_count = 0
Expand Down Expand Up @@ -98,8 +99,9 @@ def Summarize(filename, interesting_processes, label, units, results,
results.append({'label' : key + ' ' + label,
'value' : staging[key],
'units' : units})
results.append({'label' : 'Biggest other ' + label,
'value' : other_process})
if other_process:
results.append({'label' : 'Biggest other ' + label,
'value' : other_process})
if count_browser_processes:
results.append({'label' : 'Browser process count',
'value' : browser_process_count})
Expand Down

0 comments on commit 6ee1daa

Please sign in to comment.