Skip to content

Commit

Permalink
Add Metric rels as analytics as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
sifislag committed Jun 13, 2024
1 parent 6df9348 commit 35cc700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gigahorse.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def analyze_contract(index: int, contract_filename: str, result_queue, fact_gene
def get_gigahorse_analytics(out_dir: str, analytics: dict) -> None:
for fname in os.listdir(out_dir):
fpath = join(out_dir, fname)
if not fname.startswith('Analytics_'):
if not (fname.startswith('Analytics_') or fname.startswith('Metric_')):
continue
stat_name = fname.split(".")[0]
analytics[stat_name] = sum(1 for line in open(join(out_dir, fname)))
Expand Down

0 comments on commit 35cc700

Please sign in to comment.