systemd-python: fix wait bug

This commit is contained in:
Steven Hiscocks
2013-04-06 18:50:35 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 2f9f5aa014
commit 7c962c866a
+1 -2
View 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.