]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/FadingCounter.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / FadingCounter.h
index 9430ef14f68ce0d5aa7d5e371051be4c8f8aa8d1..535deff1718a8f436ec98b5e993062488fa741cb 100644 (file)
@@ -1,7 +1,15 @@
+/*
+ * Copyright (C) 1996-2015 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 "base/Vector.h"
+#include <vector>
 
 /// Counts events, forgetting old ones. Usefull for "3 errors/minute" limits.
 class FadingCounter
@@ -25,8 +33,9 @@ private:
     double delta; ///< sub-interval duration = horizon/precision
 
     double lastTime; ///< time of the last update
-    Vector<int> counters; ///< events per delta (possibly stale)
+    std::vector<int> counters; ///< events per delta (possibly stale)
     int total; ///< number of remembered events (possibly stale)
 };
 
 #endif /* SQUID_FADING_COUNTER_H */
+