Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Average is NaN with 0 solves #2

Open
YTCuber opened this issue Mar 15, 2017 · 0 comments
Open

Average is NaN with 0 solves #2

YTCuber opened this issue Mar 15, 2017 · 0 comments

Comments

@YTCuber
Copy link

YTCuber commented Mar 15, 2017

To reproduce, clear all solves.
Click on "Stats", then click on "More Stats".
It shows you "Average - NaN:NaN.NaN".

While this is understandable for any JavaScript programmer, any other person will think, that the timer is broken.

Possible solutions are displaying "DNF", "00:00.00" or "can not calculate". You can do this in averageOfArray (line 260 in script.js) by checking like if(array.length<1)return"DNF".

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

No branches or pull requests

1 participant