Commit ace96b3
impr(burst-history): Use end time when calculating burst if test ended (@Leonabcd123) (#7302)
### Description
Use the time when test ended to calculate burst instead of current time,
so that burst history matches more closely actual wpm .
Example bug fixed:
When typing a single letter, wpm will be infinity but burst history will
be ~90.
---------
Co-authored-by: Jack <[email protected]>1 parent d2c9379 commit ace96b3
3 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
| 907 | + | |
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | | - | |
1440 | | - | |
| 1439 | + | |
1441 | 1440 | | |
1442 | 1441 | | |
1443 | 1442 | | |
| |||
1508 | 1507 | | |
1509 | 1508 | | |
1510 | 1509 | | |
1511 | | - | |
| 1510 | + | |
1512 | 1511 | | |
1513 | 1512 | | |
1514 | 1513 | | |
| |||
1977 | 1976 | | |
1978 | 1977 | | |
1979 | 1978 | | |
1980 | | - | |
| 1979 | + | |
1981 | 1980 | | |
1982 | 1981 | | |
1983 | 1982 | | |
| |||
0 commit comments