Skip to content

Commit 902bba0

Browse files
committed
btdu.state: Reset compareRoot during rebuild in compare mode
Reset the compareRoot alongside browserRoot when starting a rebuild in compare mode. This ensures all browser path sample data is properly cleared for both the main and comparison trees.
1 parent db68dc8 commit 902bba0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/btdu/state.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,8 @@ void startRebuild()
648648

649649
// Reset all BrowserPath sample data and sharing group links
650650
browserRoot.reset();
651+
if (compareMode)
652+
compareRoot.reset();
651653
markTotalSamples = 0;
652654

653655
// Clear all pathData[i].next pointers to avoid stale values causing cycles

0 commit comments

Comments
 (0)