Skip to content

Commit 18fd891

Browse files
committed
Fix scale index
1 parent 7b0b295 commit 18fd891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/compiler/timings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function init_graph_scale() {
4242

4343
// If we ran out of space, return the previous scale
4444
if (width > max_available_space) {
45-
return Math.max(1, scale);
45+
return Math.max(1, scale - 1);
4646
}
4747
}
4848
// The user has a very wide display, use the highest possible scale

0 commit comments

Comments
 (0)