瀏覽代碼

Use ffs() tweak.

master
Arun Prakash Jana 7 年之前
父節點
當前提交
26e739a6d9
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      nnn.c

+ 2
- 2
nnn.c 查看文件

@@ -1619,7 +1619,7 @@ get_fs_free(const char *path)
if (statvfs(path, &svb) == -1)
return 0;
else
return svb.f_bavail << (ffs(svb.f_frsize) - 1);
return svb.f_bavail << ffs(svb.f_frsize >> 1);
}

static size_t
@@ -1630,7 +1630,7 @@ get_fs_capacity(const char *path)
if (statvfs(path, &svb) == -1)
return 0;
else
return svb.f_blocks << (ffs(svb.f_bsize) - 1);
return svb.f_blocks << ffs(svb.f_bsize >> 1);
}

static int


Loading…
取消
儲存