]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Mon, 2 May 2016 00:12:09 +0000 (00:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Mon, 2 May 2016 00:12:09 +0000 (00:12 +0000)
src/store/Disks.cc
src/store/Disks.h

index 53377e43f74817fc6ddf485926f26024d749983d..4748c392a1663d740e21e8ab0e871e319c4c177e 100644 (file)
@@ -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
index 3b72034f9f28aa2c2287a28658b70405ab7deeb1..0510089ff57c6e65a5ee7ab873fdddaf8d456431 100644 (file)
@@ -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;