Skip to content
Snippets Groups Projects
Commit 1549361a authored by Philippe Canal's avatar Philippe Canal
Browse files

fix coverity warning

git-svn-id: http://root.cern.ch/svn/root/trunk@33843 27541ba8-7e3a-0410-8455-c3a389f83636
parent 42e06aa4
No related branches found
No related tags found
No related merge requests found
......@@ -1349,15 +1349,17 @@ void TXNetFile::SynchronizeCacheSize()
// Synchronize the cache size
// Alternative purging policy
if (fClient == 0) return;
fClient->UseCache(TRUE);
Int_t size;
Long64_t bytessubmitted, byteshit, misscount, readreqcnt;
Float_t missrate, bytesusefulness;
int newbsz = -1;
if (fClient && fClient->GetCacheInfo(size, bytessubmitted,
byteshit, misscount,
missrate, readreqcnt,
bytesusefulness) ) {
if (fClient->GetCacheInfo(size, bytessubmitted,
byteshit, misscount,
missrate, readreqcnt,
bytesusefulness) ) {
// To allow for some space for outstanding data
newbsz = GetCacheRead()->GetBufferSize() / 2 * 3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment