Browse Source

Merge pull request #129 from fengyichui/master

Fix BLK_SHIFT may be wrong in some platforms #128
master
Arun Prakash Jana GitHub 6 years ago
parent
commit
dbac97f893
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/nnn.c

+ 2
- 1
src/nnn.c View File

@@ -2905,7 +2905,7 @@ nochange:
cfg.blkorder ^= 1; cfg.blkorder ^= 1;
nftw_fn = &sum_bsizes; nftw_fn = &sum_bsizes;
cfg.apparentsz = 0; cfg.apparentsz = 0;
BLK_SHIFT = 9;
BLK_SHIFT = ffs(S_BLKSIZE) - 1;
} }


if (cfg.blkorder) { if (cfg.blkorder) {
@@ -3410,6 +3410,7 @@ int main(int argc, char *argv[])
case 'S': case 'S':
cfg.blkorder = 1; cfg.blkorder = 1;
nftw_fn = sum_bsizes; nftw_fn = sum_bsizes;
BLK_SHIFT = ffs(S_BLKSIZE) - 1;
break; break;
case 'l': case 'l':
cfg.showdetail = 0; cfg.showdetail = 0;


Loading…
Cancel
Save