Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Nov 6, 2024
1 parent 83f7db4 commit e7c90b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions comparisons/resources-diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def diff_from(metrics, data, data_total, dest, dest_total, res):
dkpkey = "%s_frac_pdiff" % metric
res[dkpkey] = pdfmetric


if len(sys.argv) == 1:
print(
"""Usage: resources-diff.py IB_FILE PR_FILE
Expand All @@ -45,7 +46,7 @@ def diff_from(metrics, data, data_total, dest, dest_total, res):

datacumulsib = {}
for module in ibdata["modules"]:
datacumul=datacumulsib.get(module["type"])
datacumul = datacumulsib.get(module["type"])
if datacumul:
datacumul["count"] += 1
for metric in metrics:
Expand All @@ -68,7 +69,7 @@ def diff_from(metrics, data, data_total, dest, dest_total, res):

datacumulspr = {}
for module in prdata["modules"]:
datacumul=datacumulspr.get(module["type"])
datacumul = datacumulspr.get(module["type"])
if datacumul:
datacumul["count"] += 1
for metric in metrics:
Expand Down Expand Up @@ -228,7 +229,8 @@ def diff_from(metrics, data, data_total, dest, dest_total, res):
+ '<td align="right">%0.f<br>%0.f<br>%0.f</td>'
% (moduleib["mem_free"], modulepr["mem_free"], moduleres["mem_free_pdiff"])
+ '<td align="right">%0.2f%%</td>' % moduleres["mem_free_diff"]
+ "<td>%i<br>%i<br>%i</td>" % (moduleib["events"], modulepr["events"], moduleres["events"])
+ "<td>%i<br>%i<br>%i</td>"
% (moduleib["events"], modulepr["events"], moduleres["events"])
+ "</tr>"
]

Expand Down

0 comments on commit e7c90b7

Please sign in to comment.