This commit is contained in:
2023-08-22 18:55:00 +03:00
parent 6afb7f9f12
commit 4db0350dfe
5 changed files with 21 additions and 17 deletions

View File

@@ -39,14 +39,14 @@ class LogcatEventSource(multiprocessing.Process):
process_poll.register(process_logcat.stdout, select.POLLIN)
# Monitoring start time
current_timestamp = time.monotonic()
current_timestamp = utils.get_monotonic_time()
# Read logcat output line by line
while self.terminate_flag.value == 0:
# Check if time limit is hit
if time.monotonic() - current_timestamp > self.timelimit:
if utils.get_monotonic_time() - current_timestamp > self.timelimit:
break
current_timestamp = time.monotonic()
current_timestamp = utils.get_monotonic_time()
# Look for available data on stdout
try: