Hi,

I noticed an issue in the Reader class within python systemd.journal wait method. Fix is trivial, but patch below to highlight the issue.

diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py
index c918c43..d47a7ba 100644
--- a/src/python-systemd/journal.py
+++ b/src/python-systemd/journal.py
@@ -221,7 +221,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.


Thanks :)

--
Steven Hiscocks
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to