]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/FadingCounter.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / FadingCounter.cc
index 1dd0576fd31c3c85065cb4aa0c4afcc1b08d4134..58144593f7c2661c74243f5f628db595da5d181d 100644 (file)
@@ -1,14 +1,20 @@
+/*
+ * 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.
+ */
+
 #include "squid.h"
 #include "base/TextException.h"
 #include "FadingCounter.h"
 #include "SquidTime.h"
 
-#if HAVE_MATH_H
-#include <math.h>
-#endif /* HAVE_MATH_H */
+#include <cmath>
 
 FadingCounter::FadingCounter(): horizon(-1), precision(10), delta(-1),
-        lastTime(0), total(0)
+    lastTime(0), total(0)
 {
     counters.reserve(precision);
     while (counters.size() < static_cast<unsigned int>(precision))
@@ -67,3 +73,4 @@ int FadingCounter::count(int howMany)
 
     return total;
 }
+