Skip to content

Commit

Permalink
Fix compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja authored and abh3 committed Jun 30, 2016
1 parent 13dc7f4 commit f7e32ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/XrdFileCache/XrdFileCache.hh
Expand Up @@ -65,7 +65,7 @@ namespace XrdFileCache
long long m_diskUsageHWM; //!< cache purge high water mark

long long m_bufferSize; //!< prefetch buffer size, default 1MB
int m_RamAbsAvailable; //!< available from configuration
long long m_RamAbsAvailable; //!< available from configuration
int m_NRamBuffers; //!< number of total in-memory cache blocks, cached
bool m_prefetch; //!< prefetch enable state
size_t m_prefetch_max_blocks;//!< maximum number of blocks to prefetch per file
Expand Down
2 changes: 1 addition & 1 deletion src/XrdFileCache/XrdFileCacheConfiguration.cc
Expand Up @@ -273,7 +273,7 @@ bool Cache::ConfigParameters(std::string part, XrdOucStream& config )
{
long long minRAM = 1024* 1024 * 1024;;
long long maxRAM = 100 * minRAM;
if ( XrdOuca2x::a2sz(m_log, "get RAM available", config.GetWord(), &m_RamAbsAvailable, minRAM, maxRAM))
if ( XrdOuca2x::a2sz(m_log, "get RAM available", config.GetWord(), &m_configuration.m_RamAbsAvailable, minRAM, maxRAM))
{
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions src/XrdFileCache/XrdFileCacheFile.cc
Expand Up @@ -251,7 +251,7 @@ bool File::Open()
return false;
}

if (m_cfi.Read(m_infoFile)
if (m_cfi.Read(m_infoFile))
{
m_fileSize = m_fileSize;
int ss = (m_fileSize - 1)/m_cfi.GetBufferSize() + 1;
Expand Down Expand Up @@ -938,7 +938,7 @@ void File::CheckPrefetchStatRAM(Block* b)
//______________________________________________________________________________
void File::CheckPrefetchStatDisk(int idx)
{
if (Cache::GetInstance().RefConfiguration().m_prefetch_max_block) {
if (Cache::GetInstance().RefConfiguration().m_prefetch_max_blocks) {
if (m_cfi.TestPrefetchBit(idx))
m_prefetchHitCnt++;
}
Expand Down

0 comments on commit f7e32ce

Please sign in to comment.