fix search time

This commit is contained in:
Naoto Kondo
2022-03-20 15:07:12 +09:00
parent 2ea1bea636
commit 2d642da896

View File

@@ -2,6 +2,7 @@ import sys
import time import time
import NDIlib as ndi import NDIlib as ndi
def main(): def main():
if not ndi.initialize(): if not ndi.initialize():
@@ -13,7 +14,7 @@ def main():
return 0 return 0
t = time.time() t = time.time()
while time.time() - t < 1.0: while time.time() - t < 1.0 * 60:
if not ndi.find_wait_for_sources(ndi_find, 5000): if not ndi.find_wait_for_sources(ndi_find, 5000):
print('No change to the sources found.') print('No change to the sources found.')
continue continue
@@ -28,5 +29,6 @@ def main():
return 0 return 0
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(main()) sys.exit(main())