Skip to content

Commit 61a6835

Browse files
authored
fix: dropped frames percentage calculation (#421)
1 parent d5fa93f commit 61a6835

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/debugger/debugviewcontroller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class DebugViewController {
525525
return null
526526
}
527527

528-
return `${(data.dropped ?? (0 / data.total) * 100).toFixed(2)}% dropped (${data.dropped}/${data.total})`
528+
return `${(((data.dropped ?? 0) / data.total) * 100).toFixed(2)}% dropped (${data.dropped}/${data.total})`
529529
}
530530

531531
return data.join(", ")

0 commit comments

Comments
 (0)