Commit 6c60f39a authored by Victor Kotlyar's avatar Victor Kotlyar
Browse files

Ported commit a24ec7ac0fb63e207fa462f925495066a3b75feb from castor/master

Fixed late conversion to float which led to rounding errors when evaluating
per file write transfer speed.
parent 030a7b24
......@@ -310,8 +310,8 @@ namespace daemon {
.add("dataVolume",m_taskStats.dataVolume)
.add("headerVolume",m_taskStats.headerVolume)
.add("driveTransferSpeedMBps",m_taskStats.totalTime?
(m_taskStats.dataVolume+m_taskStats.headerVolume)
/1000/1000/m_taskStats.totalTime:0.0)
1.0*(m_taskStats.dataVolume+m_taskStats.headerVolume)
/1000/1000/m_taskStats.totalTime:0.0)
.add("payloadTransferSpeedMBps",m_taskStats.totalTime?
1.0*m_taskStats.dataVolume/1000/1000/m_taskStats.totalTime:0.0)
.add("fileSize",m_archiveFile.fileSize)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment