Edward Haas has uploaded a new change for review. Change subject: util: NoIntrPoll - replace time() with monotonic_time() ......................................................................
util: NoIntrPoll - replace time() with monotonic_time() Change-Id: I15dc7cc82ec196644612a1199d372c70913f41b2 Signed-off-by: Edward Haas <[email protected]> --- M lib/vdsm/utils.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/61/63661/1 diff --git a/lib/vdsm/utils.py b/lib/vdsm/utils.py index 0ff1a3c..a428c8e 100644 --- a/lib/vdsm/utils.py +++ b/lib/vdsm/utils.py @@ -267,7 +267,7 @@ """ # When the timeout < 0 we shouldn't compute a new timeout after an # interruption. - endtime = None if timeout < 0 else time.time() + timeout + endtime = None if timeout < 0 else monotonic_time() + timeout while True: try: @@ -277,7 +277,7 @@ raise if endtime is not None: - timeout = max(0, endtime - time.time()) + timeout = max(0, endtime - monotonic_time()) class CommandStream(object): -- To view, visit https://gerrit.ovirt.org/63661 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I15dc7cc82ec196644612a1199d372c70913f41b2 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Edward Haas <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/admin/lists/[email protected]
