mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
Fix calculating of directory apparent sizes with hard links
Silly one-character typo that causes directory apparent sizes to be very off in some scenarios. Reported & patched by Andrew Neitsch.
This commit is contained in:
parent
4a2def5223
commit
9a3727759c
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ static void hlink_check(struct dir *d) {
|
|||
i=0;
|
||||
if(i) {
|
||||
par->size = adds64(par->size, d->size);
|
||||
par->asize = adds64(par->size, d->asize);
|
||||
par->asize = adds64(par->asize, d->asize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue