diff --git a/scripts/dbgbtree.py b/scripts/dbgbtree.py index 740e0d57..5743d045 100755 --- a/scripts/dbgbtree.py +++ b/scripts/dbgbtree.py @@ -548,12 +548,13 @@ class Rbyd: d=t_depth-1 - alt['h'], c=alt['c'], )) - tree.add(TBranch( - a=alt['nft'], - b=alt['ft'], - d=t_depth-1 - alt['h'], - c='b', - )) + if alt['ft'] != alt['nft']: + tree.add(TBranch( + a=alt['nft'], + b=alt['ft'], + d=t_depth-1 - alt['h'], + c='b', + )) return tree, t_depth diff --git a/scripts/dbglfs.py b/scripts/dbglfs.py index cf5d9aaf..12d8a261 100755 --- a/scripts/dbglfs.py +++ b/scripts/dbglfs.py @@ -579,12 +579,13 @@ class Rbyd: d=t_depth-1 - alt['h'], c=alt['c'], )) - tree.add(TBranch( - a=alt['nft'], - b=alt['ft'], - d=t_depth-1 - alt['h'], - c='b', - )) + if alt['ft'] != alt['nft']: + tree.add(TBranch( + a=alt['nft'], + b=alt['ft'], + d=t_depth-1 - alt['h'], + c='b', + )) return tree, t_depth diff --git a/scripts/dbgmtree.py b/scripts/dbgmtree.py index 3e9dac8f..a8177691 100755 --- a/scripts/dbgmtree.py +++ b/scripts/dbgmtree.py @@ -563,12 +563,13 @@ class Rbyd: d=t_depth-1 - alt['h'], c=alt['c'], )) - tree.add(TBranch( - a=alt['nft'], - b=alt['ft'], - d=t_depth-1 - alt['h'], - c='b', - )) + if alt['ft'] != alt['nft']: + tree.add(TBranch( + a=alt['nft'], + b=alt['ft'], + d=t_depth-1 - alt['h'], + c='b', + )) return tree, t_depth diff --git a/scripts/dbgrbyd.py b/scripts/dbgrbyd.py index 93243ef4..8fb3414c 100755 --- a/scripts/dbgrbyd.py +++ b/scripts/dbgrbyd.py @@ -768,12 +768,13 @@ def dbg_tree(data, block_size, rev, trunk, weight, *, d=t_depth-1 - alt['h'], c=alt['c'], )) - tree.add(TBranch( - a=alt['nft'], - b=alt['ft'], - d=t_depth-1 - alt['h'], - c='b', - )) + if alt['ft'] != alt['nft']: + tree.add(TBranch( + a=alt['nft'], + b=alt['ft'], + d=t_depth-1 - alt['h'], + c='b', + )) # find the max depth from the tree t_depth = max((branch.d+1 for branch in tree), default=0)