kimmobrunfeldt / kimmobrunfeldt/progressbar.js

First countdown inaccurate

Open
#230 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I used the script to countdown from 10 minutes to 0, in 1 minute intervals, however the first loop of this (counting down from 10 minutes to 9 minutes) happens in 30 seconds instead of 1 minute. I tested this with smaller times (such as counting down from 20 seconds in 2 second intervals etc.) and the same issue was there as well.

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

Start by reproducing the reported countdown from 10 minutes to 0 in one-minute intervals, then repeat with the smaller timing example. Trace the countdown entry point and identify why the first interval is half the requested duration; done means the first and subsequent intervals consistently match the configured interval.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.