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 abh3 committed Jun 30, 2016
1 parent 296534d commit 4a33fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdFileCache/XrdFileCacheFile.cc
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 4a33fe4

Please sign in to comment.