FACT++  1.0
int64_t DimWriteStatistics::GetFreeSpace ( )
private

Returns the free space on the disk of the folder being watched (fCurrentFolder)

Retrieves the free space of the current base path

Returns
the available free space on disk, in bytes

Definition at line 66 of file DimWriteStatistics.cc.

References fCurrentFolder.

Referenced by UpdateService().

67 {
68  struct statvfs vfs;
69  if (statvfs(fCurrentFolder.c_str(), &vfs))
70  return -1;
71 
72  return vfs.f_bsize*vfs.f_bavail;
73 }
std::string fCurrentFolder

+ Here is the caller graph for this function: