Skip to content

Commit

Permalink
Fix UnboundLocalError in SummarizeData.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRouleau committed Apr 27, 2017
1 parent ca03153 commit 561e167
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 561e167

Please sign in to comment.