From: Source Maintenance Date: Mon, 2 May 2016 00:12:09 +0000 (+0000) Subject: SourceFormat Enforcement X-Git-Tag: SQUID_4_0_10~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82bee3871faf047a592db73f1d93f1f9664767fc;p=thirdparty%2Fsquid.git SourceFormat Enforcement --- diff --git a/src/store/Disks.cc b/src/store/Disks.cc index 53377e43f7..4748c392a1 100644 --- a/src/store/Disks.cc +++ b/src/store/Disks.cc @@ -127,7 +127,7 @@ storeDirSelectSwapDirLeastLoad(const StoreEntry * e) // cache_dir with the smallest max-size gets the known-size object // cache_dir with the largest max-size gets the unknown-size object if ((objsize != -1 && SD->maxObjectSize() > best_objsize) || - (objsize == -1 && SD->maxObjectSize() < best_objsize)) + (objsize == -1 && SD->maxObjectSize() < best_objsize)) continue; } @@ -383,7 +383,7 @@ Store::Disks::accumulateMore(const StoreEntry &entry) const { const auto accumulated = entry.mem_obj->availableForSwapOut(); - /* + /* * Keep accumulating more bytes until the set of disks eligible to accept * the entry becomes stable, and, hence, accumulating more is not going to * affect the cache_dir selection. A stable set is usually reached @@ -401,7 +401,7 @@ Store::Disks::accumulateMore(const StoreEntry &entry) const if (accumulated <= secondLargestMaximumObjectSize) return secondLargestMaximumObjectSize - accumulated + 1; - /* + /* * Checking largestMaximumObjectSize instead eliminates the risk of starting * to swap out an entry that later grows too big, but also implies huge * accumulation in most environments. Accumulating huge entries not only diff --git a/src/store/Disks.h b/src/store/Disks.h index 3b72034f9f..0510089ff5 100644 --- a/src/store/Disks.h +++ b/src/store/Disks.h @@ -45,7 +45,7 @@ public: /// slowly calculate (and cache) hi/lo watermarks and similar limits void updateLimits(); - /// Additional unknown-size entry bytes required by disks in order to + /// Additional unknown-size entry bytes required by disks in order to /// reduce the risk of selecting the wrong disk cache for the growing entry. int64_t accumulateMore(const StoreEntry&) const;