10of12 bug in CubeTimer.com

Mozza314

Member
Joined
Oct 4, 2008
Messages
22
YouTube
Visit Channel
Hi

I'm not sure if this is the right forum so mods please move it if necessary.

Anyway, the 10 of 12 average is broken. Basically, it's calculating an 8 of 10 average instead. It's because of line 97 in the code:
Code:
stats_list['stat_avg10of12'] = time_list.length >= 12 ? format_time(avg_with_discards(time_list, 10)) : '--:--.--';


Which should instead be:
Code:
stats_list['stat_avg10of12'] = time_list.length >= 12 ? format_time(avg_with_discards(time_list, 12)) : '--:--.--';


This is an open message to the author of CubeTimer.com. I present it here so others who use this timer know that any 10 of 12 averages they have recorded with this site are invalid.
 
I noticed this when doing an average for the sunday contest. I never really used cubetimer.com for averages of 12 after that. I've heard other people mention it but not with the code. I really hope this gets fixed so I can start using it again.

Have you emailed dan about it? I was going to but I never got around to it. I can't imagine why it isn't already fixed.
 
Yay, now I can use cubetimer again...
I thought I had to switch to a different timer, but nice to know that the problem is solved already.
 
Back
Top