Skip to content

Commit

Permalink
made dual-edge frames no longer have gaps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus10110 authored and tgtakaoka committed Dec 14, 2024
1 parent 3e48865 commit 54626a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SimpleParallelAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,7 @@ void SimpleParallelAnalyzer::DecodeBothEdges()
if( has_pending_frame )
{
// store the previous frame.
// If we're getting a transition on every sample, we should ensure that each frame is at least 1
// sample wide, to avoid 0 length frames, which are hidden in the UI.
uint64_t ending_sample_inclusive = std::max<uint64_t>( location - 1, previous_sample + 1 );
uint64_t ending_sample_inclusive = location;
progress_update = AddFrame( previous_value, previous_sample, ending_sample_inclusive );
has_pending_frame = false;
}
Expand Down

0 comments on commit 54626a0

Please sign in to comment.