newmarcel / newmarcel/KeepingYouAwake

Remaining duration went negative after sleep

Open
#157 2 comments 2 reactions 0 assignees View on GitHub

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.
Screen Shot 2020-09-10 at 12 45 27 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.