Skip to content

Commit

Permalink
fix: CSV export not working
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodCoder666 committed Dec 16, 2023
1 parent 7dd2398 commit 7c76591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __save_ips(self, filename):
with open(filename, 'w', encoding='utf-8') as file:
file.write('IP,响应时间(ms)\n')
for row in range(self.ui.resultTable.rowCount()):
file.write(f'{self.ui.resultTable.item(row, 0).text()},{self.ui.resultTable.item(row, 1).secs:.0f)}\n')
file.write(f'{self.ui.resultTable.item(row, 0).text()},{self.ui.resultTable.item(row, 1).secs*1000:.0f}\n')
else:
with open(filename, 'w') as file:
for row in range(self.ui.resultTable.rowCount()):
Expand Down

0 comments on commit 7c76591

Please sign in to comment.