chiark / gitweb /
systemd-python: fix wait bug
[elogind.git] / src / python-systemd / journal.py
index c918c439b5d349b93e1c4c220254a22ce5f49a03..48f57ac7a5b0eb987ad20ac8278324da61f74427 100644 (file)
@@ -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.