]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/FadingCounter.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / FadingCounter.h
index ee65f92e4dc9fa17ff3c1707b00a6869d09f793b..8547e9110fb3decc9f6afac1d8d87a5511370d24 100644 (file)
@@ -1,9 +1,17 @@
+/*
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #ifndef SQUID_FADING_COUNTER_H
 #define SQUID_FADING_COUNTER_H
 
 #include <vector>
 
-/// Counts events, forgetting old ones. Usefull for "3 errors/minute" limits.
+/// Counts events, forgetting old ones. Useful for "3 errors/minute" limits.
 class FadingCounter
 {
 public:
@@ -21,7 +29,7 @@ public:
     double horizon;
 
 private:
-    const int precision; ///< #counting slots, controls measur. occuracy
+    const int precision; ///< #counting slots, controls measur. accuracy
     double delta; ///< sub-interval duration = horizon/precision
 
     double lastTime; ///< time of the last update
@@ -30,3 +38,4 @@ private:
 };
 
 #endif /* SQUID_FADING_COUNTER_H */
+