Skip to content

Commit

Permalink
Fix sec2str
Browse files Browse the repository at this point in the history
  • Loading branch information
ionic-bond committed Apr 25, 2024
1 parent 8159cc3 commit 0f5008f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream_translator_gpt/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ def work(cls, **kwargs):
def sec2str(second: float):
dt = datetime.utcfromtimestamp(second)
result = dt.strftime('%H:%M:%S')
result += ',' + str(round(second * 10 % 10))
result += ',' + str(int(second * 10 % 10))
return result

0 comments on commit 0f5008f

Please sign in to comment.