Skip to content

Commit 30a3aa6

Browse files
jschlyterjaniversen
authored andcommitted
truncated duration to milliseconds
1 parent 9d01af1 commit 30a3aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymodbus/client/tcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _handle_abrupt_socket_close(self, size, data, duration):
287287
readsize = f"read of {size_txt} bytes"
288288
msg = (
289289
f"{self}: Connection unexpectedly closed "
290-
f"{duration} seconds into {readsize}"
290+
f"{duration:.3f} seconds into {readsize}"
291291
)
292292
if data:
293293
result = b"".join(data)

0 commit comments

Comments
 (0)