summaryrefslogtreecommitdiff
path: root/systemd/journal.py
diff options
context:
space:
mode:
authorSteven Hiscocks <steven-systemd@hiscocks.me.uk>2013-04-06 18:46:44 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-07-05 14:19:19 -0400
commitd9dc73a9235af51b7ca703737d8059c2f6340f80 (patch)
treebe6b80de83252105cebb40a59d14cf185a0d4ff0 /systemd/journal.py
parent06e0c9012f1cc4552fcbd9fe484361974f9576a4 (diff)
downloadpython-systemd-d9dc73a9235af51b7ca703737d8059c2f6340f80.tar.gz
systemd-python: fix wait bug
Diffstat (limited to 'systemd/journal.py')
-rw-r--r--systemd/journal.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/systemd/journal.py b/systemd/journal.py
index c918c43..48f57ac 100644
--- a/systemd/journal.py
+++ b/systemd/journal.py
@@ -23,7 +23,6 @@ from __future__ import division
import sys as _sys
import datetime as _datetime
-import functools as _functools
import uuid as _uuid
import traceback as _traceback
import os as _os
@@ -221,7 +220,7 @@ class Reader(_Reader):
have been added or removed).
"""
us = -1 if timeout is None else int(timeout * 1000000)
- return super(Reader, self).wait(timeout)
+ return super(Reader, self).wait(us)
def seek_realtime(self, realtime):
"""Seek to a matching journal entry nearest to `realtime` time.