]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/repl/heap/store_heap_replacement.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / repl / heap / store_heap_replacement.cc
index cbbb634d5d0a3d24cee972a18599aa4d64d6a59a..b005a45a773cdb7a5a511cbb40eac5681f764636 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_heap_replacement.cc,v 1.15 2007/04/28 22:26:51 hno Exp $
+ * $Id$
  *
  * DEBUG: section 20    Storage Manager Heap-based replacement
  * AUTHOR: John Dilley
 #include "MemObject.h"
 #include "SquidTime.h"
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif
+
 /*
  * Key generation function to implement the LFU-DA policy (Least
  * Frequently Used with Dynamic Aging).  Similar to classical LFU
@@ -94,7 +98,6 @@ HeapKeyGen_StoreEntry_LFUDA(void *entry, double heap_age)
     return (double) key;
 }
 
-
 /*
  * Key generation function to implement the GDS-Frequency policy.
  * Similar to Greedy Dual-Size Hits policy, but adds aging of