[systemd-devel] python-systemd wait bug

Steven Hiscocks steven-systemd at hiscocks.me.uk
Sat Apr 6 15:13:08 PDT 2013


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


More information about the systemd-devel mailing list