Skip to content

Commit

Permalink
Rename parameters for prefetch and available ram.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja authored and abh3 committed Jun 30, 2016
1 parent b6f911b commit eec7cd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/XrdFileCache/XrdFileCacheConfiguration.cc
Expand Up @@ -251,11 +251,11 @@ bool Cache::ConfigParameters(std::string part, XrdOucStream& config )
return false;
}
}
else if (part == "prefetch" )
else if (part == "prefetch_max_blocks" )
{
const char* params = config.GetWord();
if (params) {
int p = ::atoi(config.GetWord());
int p = ::atoi(params);
if (p > 0) {
printf("prefetch enabled, max blocks per file=%d\n", p);
m_configuration.m_prefetch_max_blocks = p;
Expand All @@ -264,12 +264,13 @@ bool Cache::ConfigParameters(std::string part, XrdOucStream& config )
m_configuration.m_prefetch_max_blocks = 0;
}
}
else
{
m_log.Emsg("Config", "Error setting prefetch level.");
return false;
}
}
else if (part == "nram" )
else if (part == "ram" )
{
long long minRAM = 1024* 1024 * 1024;;
long long maxRAM = 100 * minRAM;
Expand Down

0 comments on commit eec7cd8

Please sign in to comment.