Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
1ee1281f
Commit
1ee1281f
authored
Jul 15, 2014
by
David COME
Browse files
Changed an hard coded value in a static constant
parent
34d5f429
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/SessionStats.hpp
View file @
1ee1281f
...
...
@@ -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
),
...
...
castor/tape/tapeserver/daemon/TapeWriteTask.cpp
View file @
1ee1281f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment