Skip to content

Commit

Permalink
Fix evaluation of prefetch score.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja authored and osschar committed Mar 9, 2016
1 parent 28c5f2c commit 8840bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdFileCache/XrdFileCacheFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ void File::Prefetch()
cache()->RequestRAMBlock();
RequestBlock(f, true);
m_prefetchReadCnt++;
m_prefetchScore = m_prefetchHitCnt/m_prefetchReadCnt;
m_prefetchScore = float(m_prefetchHitCnt)/m_prefetchReadCnt;
found = true;
break;
}
Expand Down Expand Up @@ -958,7 +958,7 @@ void File::CheckPrefetchStatRAM(Block* b)
if (Factory::GetInstance().RefConfiguration().m_prefetch) {
if (b->m_prefetch) {
m_prefetchHitCnt++;
m_prefetchScore = m_prefetchHitCnt/m_prefetchReadCnt;
m_prefetchScore = float(m_prefetchHitCnt)/m_prefetchReadCnt;
}
}
}
Expand Down

0 comments on commit 8840bc8

Please sign in to comment.