add log for output.csv

This commit is contained in:
Youngjoon Lee 2024-12-21 21:48:54 +09:00
parent 0a688f59fa
commit c7247242b8
No known key found for this signature in database
GPG Key ID: 303963A54A81DD4D
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,7 @@ print("Analyzing logs...")
print("=================") print("=================")
with open("output.csv", "w", newline="") as file: with open("output.csv", "w", newline="") as file:
print(f"Writing results to: {file.name}")
csv_writer = csv.writer(file) csv_writer = csv.writer(file)
csv_writer.writerow( csv_writer.writerow(
[ [
@ -234,3 +235,5 @@ with open("output.csv", "w", newline="") as file:
csv_row.append(bandwidth_res["max"] * 8 / 1000.0) csv_row.append(bandwidth_res["max"] * 8 / 1000.0)
csv_writer.writerow(csv_row) csv_writer.writerow(csv_row)
print(f"The outputs have been successfully written to {file.name}")