mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Merge pull request #129 from fengyichui/master
Fix BLK_SHIFT may be wrong in some platforms #128
This commit is contained in:
commit
dbac97f893
|
@ -2905,7 +2905,7 @@ nochange:
|
|||
cfg.blkorder ^= 1;
|
||||
nftw_fn = &sum_bsizes;
|
||||
cfg.apparentsz = 0;
|
||||
BLK_SHIFT = 9;
|
||||
BLK_SHIFT = ffs(S_BLKSIZE) - 1;
|
||||
}
|
||||
|
||||
if (cfg.blkorder) {
|
||||
|
@ -3410,6 +3410,7 @@ int main(int argc, char *argv[])
|
|||
case 'S':
|
||||
cfg.blkorder = 1;
|
||||
nftw_fn = sum_bsizes;
|
||||
BLK_SHIFT = ffs(S_BLKSIZE) - 1;
|
||||
break;
|
||||
case 'l':
|
||||
cfg.showdetail = 0;
|
||||
|
|
Loading…
Reference in a new issue