summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Herold <m.herold@fu-berlin.de>2015-12-10 00:18:01 +0100
committerMichael Herold <m.herold@fu-berlin.de>2015-12-10 00:18:01 +0100
commit3d046016c4ca8860485ab27dd42eaf5bc49872a7 (patch)
treee39603afb75a8a5e9fbbc1e49f7c21d43186ad09
parentc8749e7fbc3174136f4e654ae9a50f3e87ef6e60 (diff)
downloadpython-systemd-3d046016c4ca8860485ab27dd42eaf5bc49872a7.tar.gz
Fixes Reader.seek_monotonic(datetime.timedelta)
-rw-r--r--systemd/journal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/journal.py b/systemd/journal.py
index b319a8a..fae7f6f 100644
--- a/systemd/journal.py
+++ b/systemd/journal.py
@@ -291,7 +291,7 @@ class Reader(_Reader):
is reference to. Defaults to current bootid.
"""
if isinstance(monotonic, _datetime.timedelta):
- monotonic = monotonic.totalseconds()
+ monotonic = monotonic.total_seconds()
monotonic = int(monotonic * 1000000)
if isinstance(bootid, _uuid.UUID):
bootid = bootid.hex