Skip to content

Commit 870b164

Browse files
committed
Fix error rate
1 parent 3bae723 commit 870b164

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/profiling/sampling/flamegraph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ function populateProfileSummary(data) {
690690

691691
// Efficiency bar
692692
if (errorRate !== undefined && errorRate !== null) {
693-
const efficiency = Math.max(0, Math.min(100, (1 - errorRate) * 100));
693+
const efficiency = Math.max(0, Math.min(100, (100 - errorRate)));
694694

695695
const efficiencySection = document.getElementById('efficiency-section');
696696
if (efficiencySection) efficiencySection.style.display = 'block';

0 commit comments

Comments
 (0)