maintenance
This commit is contained in:
@@ -176,18 +176,6 @@ bool Utility::fmod(double dividend, double divisor)
|
||||
return std::fabs(remainder) < epsilon;
|
||||
}
|
||||
|
||||
// inline
|
||||
// size_t Utility::getAvailableDiskSpace(const String& path)
|
||||
// {
|
||||
// struct statvfs stat;
|
||||
// if (::statvfs(path, &stat) != 0)
|
||||
// {
|
||||
// throw new Exception("Error calling statvfs to get available disk space.");
|
||||
// }
|
||||
// // Calculate available space in bytes. Multiply Number of free inodes * Fragment size
|
||||
// return (size_t)stat.f_bavail * stat.f_frsize;
|
||||
// }
|
||||
|
||||
inline
|
||||
size_t Utility::getAvailableDiskSpace(const String& path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user