Skip to content
Snippets Groups Projects
Commit d6881d28 authored by David COME's avatar David COME
Browse files

Changed an hard coded value in a static constant

parent 0fd6c96a
Branches
Tags
No related merge requests found
......@@ -74,6 +74,8 @@ namespace daemon {
/** Count of files actually transfered in the session. */
uint64_t filesCount;
static const uint64_t headerVolumePerFile = 3*80;
/** Constructor: all defaults are zero */
SessionStats(): mountTime(0.0), positionTime(0.0), checksumingTime(0.0),
transferTime(0.0), flushTime(0.0), unloadTime(0.0), unmountTime(0.0),
......
......@@ -82,7 +82,7 @@ namespace daemon {
//try to open the session
std::auto_ptr<castor::tape::tapeFile::WriteFile> output(openWriteFile(session,lc));
localStats.transferTime += timer.secs(utils::Timer::resetCounter);
localStats.headerVolume += (3*80);
localStats.headerVolume += SessionStats::headerVolumePerFile;
while(!m_fifo.finished()) {
//if someone screw somewhere else, we stop
......@@ -109,7 +109,7 @@ namespace daemon {
//put the trailer
output->close();
localStats.transferTime += timer.secs(utils::Timer::resetCounter);
localStats.headerVolume += (3*80);
localStats.headerVolume += SessionStats::headerVolumePerFile;
localStats.filesCount ++;
reportPacker.reportCompletedJob(*m_fileToMigrate,ckSum);
localStats.waitReportingTime += timer.secs(utils::Timer::resetCounter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment