mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
mem_src: Fix setting nlink for non-hardlinks
That field is still used in sink.zig for total size estimation.
This commit is contained in:
parent
9cbe1bc91f
commit
2b2b4473e5
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ fn toStat(e: *model.Entry) sink.Stat {
|
|||
else if (el) |l| model.devices.list.items[l.parent.pack.dev]
|
||||
else undefined,
|
||||
.ino = if (el) |l| l.ino else undefined,
|
||||
.nlink = if (el) |l| l.pack.nlink else undefined,
|
||||
.nlink = if (el) |l| l.pack.nlink else 1,
|
||||
.hlinkc = el != null,
|
||||
.dir = e.pack.etype == .dir,
|
||||
.reg = if (e.file()) |f| !f.pack.notreg else e.pack.etype != .dir,
|
||||
|
|
|
|||
Loading…
Reference in a new issue