提交 f68c8012 编写于 作者: lymzzyh's avatar lymzzyh

[Components][DFS]fix if disk free more than 4GB

上级 4356db5b
......@@ -554,8 +554,8 @@ int df(const char *path)
return -1;
}
cap = buffer.f_bsize * buffer.f_bfree / 1024;
for (unit_index = 0; unit_index < 3; unit_index ++)
cap = ((long long)buffer.f_bsize) * ((long long)buffer.f_bfree) / 1024LL;
for (unit_index = 0; unit_index < 2; unit_index ++)
{
if (cap < 1024) break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册