[systemd-devel] python-systemd wait bug

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat Apr 6 16:36:25 PDT 2013


On Sat, Apr 06, 2013 at 11:13:08PM +0100, Steven Hiscocks wrote:
> 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.
> 
Applied.

Zbyszek


More information about the systemd-devel mailing list