We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efc8f44 commit c434c50Copy full SHA for c434c50
frontend/src/ts/test/result.ts
@@ -432,9 +432,8 @@ function updateConsistency(): void {
432
}
433
434
function updateTime(): void {
435
- const afkSecondsRaw = result.afkDuration / result.testDuration;
436
const afkSecondsPercent = Numbers.roundTo2(
437
- isNaN(afkSecondsRaw) ? 0 : afkSecondsRaw * 100,
+ (result.afkDuration / result.testDuration) * 100 || 0,
438
);
439
qs("#result .stats .time .bottom .afk")?.setText("");
440
if (afkSecondsPercent > 0) {
0 commit comments