forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix off-by-one bug while reading heaptrack files (vercel#8101)
### Description allocations are zero indexed... ### Testing Instructions <!-- Give a quick description of steps to test your changes. --> Closes PACK-3043
- Loading branch information
1 parent
77ee752
commit 84b40db
Showing
3 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -853,7 +853,7 @@ impl Viewer { | |
.collect(); | ||
Update { | ||
lines, | ||
max: current, | ||
max: max(1, current), | ||
} | ||
} | ||
} | ||
|