Skip to content

Commit 3d04601

Browse files
author
Michael Herold
committed
Fixes Reader.seek_monotonic(datetime.timedelta)
1 parent c8749e7 commit 3d04601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemd/journal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def seek_monotonic(self, monotonic, bootid=None):
291291
is reference to. Defaults to current bootid.
292292
"""
293293
if isinstance(monotonic, _datetime.timedelta):
294-
monotonic = monotonic.totalseconds()
294+
monotonic = monotonic.total_seconds()
295295
monotonic = int(monotonic * 1000000)
296296
if isinstance(bootid, _uuid.UUID):
297297
bootid = bootid.hex

0 commit comments

Comments
 (0)