Skip to content

Commit

Permalink
Fix precedence of time variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shadaj authored May 2, 2024
1 parent 7c06b77 commit f922097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/synthesize_crdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ def main():
times = sorted([float(row[1]) for row in report_reader])
with open(f"benchmarks-{bench}-{bounded_bench_str}-first_{first_n}-distribution.csv", "w") as distribution_file:
distribution_file.write(f"time,percent\n")
for (i, time) in enumerate(times):
for (i, measured_time) in enumerate(times):
percent = (i + 1) / len(times)
distribution_file.write(f"{time},{percent}\n")
distribution_file.write(f"{measured_time},{percent}\n")

if __name__ == "__main__":
main()

0 comments on commit f922097

Please sign in to comment.