newmarcel / newmarcel/KeepingYouAwake
Remaining duration went negative after sleep
Open
Nobody has claimed this yet.
bug
- Dominant language
- Objective-C
- Stars
- 6.9k
- Forks
- 266
- PR merge metrics
- No merged PRs in 30d
Description
I turned on KeepingYouAwake yesterday with a 6h duration, and then put my laptop to sleep without disabling it. I just checked right now and it's still active with a remaining duration of -16h.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported case by starting a 6-hour duration in KeepingYouAwake, putting the Mac to sleep, and checking the remaining duration after waking. Trace how elapsed time is measured across sleep and verify that the duration does not become negative and that the active state ends at the intended time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100