Skip to content

Commit

Permalink
Parse prefetch entry correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja authored and osschar committed Mar 9, 2016
1 parent 7dbb8ff commit 60267b5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/XrdFileCache/XrdFileCacheFactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,14 @@ bool Factory::ConfigParameters(std::string part, XrdOucStream& config )
}
else if (part == "prefetch" )
{
printf("prefetch enabled !!!!\n");
m_configuration.m_prefetch = true;
config.GetWord();
int p = ::atoi(config.GetWord());
if (p != 0) {
printf("prefetch enabled !!!!\n");
m_configuration.m_prefetch = true;
}
else {
m_configuration.m_prefetch = false;
}
}
else if (part == "nram" )
{
Expand Down

0 comments on commit 60267b5

Please sign in to comment.