mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fix counts when new link to existing inode is found on refresh
And the inode should not already have been in the directory before refresh. Seems like a fairly obscure bug, but a bug nonetheless.
This commit is contained in:
parent
3c055810d0
commit
0a6bcee32b
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ pub const Link = extern struct {
|
||||||
l.next = l;
|
l.next = l;
|
||||||
l.prev = l;
|
l.prev = l;
|
||||||
} else {
|
} else {
|
||||||
inodes.setStats(l, false);
|
inodes.setStats(d.key_ptr.*, false);
|
||||||
l.next = d.key_ptr.*;
|
l.next = d.key_ptr.*;
|
||||||
l.prev = d.key_ptr.*.prev;
|
l.prev = d.key_ptr.*.prev;
|
||||||
l.next.prev = l;
|
l.next.prev = l;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue