minor updates

This commit is contained in:
Florian Kellermann 2022-04-05 15:12:51 +02:00
parent 7b99be9633
commit 5311c89193

View File

@ -40,7 +40,7 @@ def main_loop():
print(time.ctime()) # Debug print(time.ctime()) # Debug
p1 = Process(target= update_crontab, args=(current_time_datetime, )) #Test threading instead of multiprocessing p1 = Process(target= update_crontab, args=(current_time_datetime, ))
p1.start() p1.start()
p3 = Process(target= update_based_on_crontab, args=(current_time_datetime, ) ) p3 = Process(target= update_based_on_crontab, args=(current_time_datetime, ) )
p3.daemon = True p3.daemon = True
@ -73,6 +73,7 @@ def update_crontab(pCurrent_Time):
time_difference = datetime.datetime.now() - pCurrent_Time time_difference = datetime.datetime.now() - pCurrent_Time
if float(str(time_difference).split(':')[0]) >=1: if float(str(time_difference).split(':')[0]) >=1:
update_crontab(datetime.datetime.now()) update_crontab(datetime.datetime.now())
break
def update_based_on_crontab(pCurrent_Time): def update_based_on_crontab(pCurrent_Time):