general code cleanup

This commit is contained in:
Antonio SJ Musumeci
2019-01-31 22:47:09 -05:00
parent 5a1a60742e
commit 9d9ee7b71d
178 changed files with 5098 additions and 5253 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ using std::vector;
static const uint64_t DEFAULT_TIMEOUT = 0;
namespace local
namespace l
{
static
uint64_t
@@ -62,7 +62,7 @@ PolicyCache::cleanup(const int prob_)
if(rand() % prob_)
return;
now = local::get_time();
now = l::get_time();
pthread_mutex_lock(&_lock);
@@ -103,7 +103,7 @@ PolicyCache::operator()(Policy::Func::Search &func_,
if(timeout == 0)
return func_(branches_,fusepath_,minfreespace_,branch_);
now = local::get_time();
now = l::get_time();
pthread_mutex_lock(&_lock);
v = &_cache[fusepath_];