summaryrefslogtreecommitdiff
path: root/src/python-systemd/journal.py
diff options
context:
space:
mode:
authorSteven Hiscocks <steven@hiscocks.me.uk>2013-02-16 19:10:49 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-22 16:57:44 +0100
commit518dc5dff557116db3f072eb9d0a9492b6226778 (patch)
treeb5d5c5cf9bce53e10b023fc4d79fee6b11c6d002 /src/python-systemd/journal.py
parent83718af6f59fb3a6359c8da1f8bc8b8fd8799106 (diff)
systemd-python: _reader now takes unix timestamp in seconds
Diffstat (limited to 'src/python-systemd/journal.py')
-rw-r--r--src/python-systemd/journal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py
index 279662e6a6..ab8661e987 100644
--- a/src/python-systemd/journal.py
+++ b/src/python-systemd/journal.py
@@ -126,7 +126,7 @@ class Journal(_Journal):
def seek_realtime(self, timestamp):
if isinstance(timestamp, datetime.datetime):
- timestamp = int(timestamp.strftime("%s%f"))
+ timestamp = float(timestamp.strftime("%s.%f"))
return super(Journal, self).seek_realtime(timestamp)
def seek_monotonic(self, timestamp, bootid=None):