Skip to content

After computer standby, pause unnecessarily sleeps for up to half of the specified time #14

@sth

Description

@sth

The documentation says:

On the other hand, with pause.seconds(3600), if your computer goes into standby mode for several hours, the program will continue immediately after the machine wakes back up since the minimum amount of time has passed since the pause was started.

With to the "logarithmic sleeping" implemented in #8, time.sleep() is initially called with half the specified time interval. When the computer goes to standby then, it will still sleep for that time after walking up.

A good middle ground would probably be to limit the "logarithmic" sleep interval to one minute or so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions