Skip to content

Commit 8b9fda3

Browse files
committed
fixes
1 parent 1e134ce commit 8b9fda3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/query_farm_server_base/duckdb_serialized_expression.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ def decode_bitstring(data: bytes) -> str:
3535

3636

3737
def interpret_time(value: int) -> str:
38-
t = timedelta(milliseconds=value)
38+
t = timedelta(microseconds=value)
3939
hours, remainder = divmod(t.seconds, 3600)
4040
minutes, seconds = divmod(remainder, 60)
41-
milliseconds = t.microseconds // 1000
4241

43-
result = time(hours, minutes, seconds, milliseconds * 1000)
42+
result = time(hours, minutes, seconds, microsecond=t.microseconds)
4443
return result.strftime("%H:%M:%S.%f")
4544

4645

0 commit comments

Comments
 (0)