Skip to content

Comments

Fixing sleep time to wait for exact next second.#429

Open
fx-kirin wants to merge 2 commits intoahawker:masterfrom
fx-kirin:fixing_sleep_time
Open

Fixing sleep time to wait for exact next second.#429
fx-kirin wants to merge 2 commits intoahawker:masterfrom
fx-kirin:fixing_sleep_time

Conversation

@fx-kirin
Copy link

Crython depends on accuracy of time.sleep(1) of tab.py.

It can cause delays, and the delays accumulate. So sometimes a second can be ignored because of it, like sleep starts at 13:01:21.99 and wakes up at 13:01:23.01. This case, the cron job matched to 13:01:22 will not be executed.

This fix will repair the ignorance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant