mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-11 20:34:47 +00:00
Fixed: Compilation
This commit is contained in:
parent
dec50bdcc5
commit
d07e0d76d9
1 changed files with 1 additions and 1 deletions
|
@ -1057,7 +1057,7 @@ uint64 CSystemInfo::availableHDSpace (const string &filename)
|
||||||
struct statfs stfs;
|
struct statfs stfs;
|
||||||
|
|
||||||
if (::stat(path.c_str(), &stst) == -1) return 0;
|
if (::stat(path.c_str(), &stst) == -1) return 0;
|
||||||
if (::statfs(c_str(), &stfs) == -1) return 0;
|
if (::statfs(path.c_str(), &stfs) == -1) return 0;
|
||||||
|
|
||||||
return (uint64)(stfs.f_bavail * stst.st_blksize);
|
return (uint64)(stfs.f_bavail * stst.st_blksize);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue