Commit e2d7afe
committed
fix: calculate WPM based on correctly typed words in Typing Speed Tester
WPM was calculated using the original sentence word count, giving
inflated results when the user typed fewer or different words.
Now counts only correctly typed words (net WPM) for an accurate metric.
Fixes steam-bell-92#8981 parent 96e54cf commit e2d7afe
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments