]> xenbits.xensource.com Git - libvirt.git/commit
python example: poll(-0.001) does not sleep forever
authorPhilipp Hahn <hahn@univention.de>
Tue, 23 Mar 2010 15:07:57 +0000 (16:07 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 24 Mar 2010 09:26:23 +0000 (10:26 +0100)
commit1cfbfaa69763da20edfbba5d9bd77b92d08f8af1
tree774cdaee36fcdb77f0e515fef684666e97134332
parent84eb6effdd0241a8bae196d4b77d873aea7fd3db
python example: poll(-0.001) does not sleep forever

The conversion from seconds to milliseconds should only be done for
actual delays >= 0, not for the magic -1 value used for infinite
timeouts.

Signed-off-by: Philipp Hahn <hahn@univention.de>
examples/domain-events/events-python/event-test.py