diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-04-13 13:18:28 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-04-13 13:18:28 -0600 |
commit | f37ad3c90dab9b77e7c2796e963f5992458ad4a4 (patch) | |
tree | 631f9de458b9b91b02fe07e2a812233a3ac20520 /lib/btrfsutil/rebuilt_tree.go | |
parent | c262f37c6a0ba64d39414b45fd54d172c50762c8 (diff) | |
parent | 7726e27f3b79e031fe9a9ea9504dea5df0327e02 (diff) |
Merge branch 'lukeshu/fixes'
Diffstat (limited to 'lib/btrfsutil/rebuilt_tree.go')
-rw-r--r-- | lib/btrfsutil/rebuilt_tree.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/btrfsutil/rebuilt_tree.go b/lib/btrfsutil/rebuilt_tree.go index ffb2e5f..31a31be 100644 --- a/lib/btrfsutil/rebuilt_tree.go +++ b/lib/btrfsutil/rebuilt_tree.go @@ -259,11 +259,9 @@ func (tree *RebuiltTree) items(ctx context.Context, inc bool) containers.SortedM progressWriter.Set(stats) } } - if stats.Leafs.N > 0 { - stats.Leafs.N = stats.Leafs.D - progressWriter.Set(stats) - progressWriter.Done() - } + stats.Leafs.N = stats.Leafs.D + progressWriter.Set(stats) + progressWriter.Done() return index } |