fs::statfs fixed
This commit is contained in:
+1
-1
@@ -428,7 +428,7 @@ bool fs::statfs(const std::string& path, fs::device_stat& info)
|
|||||||
info.avail_free = avail_free.QuadPart;
|
info.avail_free = avail_free.QuadPart;
|
||||||
#else
|
#else
|
||||||
struct ::statvfs buf;
|
struct ::statvfs buf;
|
||||||
if (!::statvfs(path.c_str(), &buf) != 0)
|
if (::statvfs(path.c_str(), &buf) != 0)
|
||||||
{
|
{
|
||||||
g_tls_error = to_error(errno);
|
g_tls_error = to_error(errno);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user