mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fix hardlink counting off-by-one in binary export
This commit is contained in:
parent
22dca22450
commit
ad166de925
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ pub const Dir = struct {
|
|||
const v = kv.value_ptr;
|
||||
d.size +|= v.size;
|
||||
d.blocks +|= v.blocks;
|
||||
if (v.nlink > 1 and v.nfound <= v.nlink) {
|
||||
if (v.nlink > 1 and v.nfound < v.nlink) {
|
||||
d.shared_size +|= v.size;
|
||||
d.shared_blocks +|= v.blocks;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue