Changeset 11534
- Timestamp:
- 07/22/11 08:50:56 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimWriteStatistics.cc
r11318 r11534 72 72 //! @return the size of the file, in bytes 73 73 // 74 int64_t DimWriteStatistics::GetFileSizeOnDisk(const string& file )74 int64_t DimWriteStatistics::GetFileSizeOnDisk(const string& file, MessageImp &log) 75 75 { 76 76 errno = 0; … … 85 85 ostringstream str; 86 86 str << "stat() failed for '" << file << "': " << strerror(errno) << " [errno=" << errno << "]"; 87 fLog.Error(str);87 log.Error(str); 88 88 89 89 return -1; -
trunk/FACT++/src/DimWriteStatistics.h
r11518 r11534 56 56 57 57 ///Returns the size on disk of a given file 58 int64_t GetFileSizeOnDisk(const std::string& file) ;58 int64_t GetFileSizeOnDisk(const std::string& file) { return GetFileSizeOnDisk(file, fLog); } 59 59 60 60 int Write(const Time &t, const std::string &txt, int qos); … … 77 77 const Stats &GetTotalSizeWritten() const { return fStats; } 78 78 uint16_t GetUpdateInterval() const { return fUpdateInterval; } 79 80 ///Returns the size on disk of a given file 81 static int64_t GetFileSizeOnDisk(const std::string& file, MessageImp &imp); 79 82 }; 80 83
Note:
See TracChangeset
for help on using the changeset viewer.